From e611e21d029c443c36b83de8801a8d1987e25afa Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Sun, 8 Aug 2021 23:55:09 +0200 Subject: [PATCH] Make Preferences a class this is going to be modified a lot and passed around, so avoid making many copies on the stack. --- src/invidious/user/preferences.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/user/preferences.cr b/src/invidious/user/preferences.cr index f8633392..8703d10e 100644 --- a/src/invidious/user/preferences.cr +++ b/src/invidious/user/preferences.cr @@ -3,7 +3,7 @@ # all the associated validation/parsing routines. # -struct Preferences +class Preferences include JSON::Serializable include YAML::Serializable