diff --git a/src/prefs.rs b/src/prefs.rs index 2e88293b4..13f25ec58 100644 --- a/src/prefs.rs +++ b/src/prefs.rs @@ -28,7 +28,7 @@ impl Default for MiddleClickAction { } -#[derive(Deserialize, Debug, Serialize)] +#[derive(Deserialize, Debug, Serialize, Default)] #[serde(default)] pub struct Prefs { pub device_prefs: DevicePrefs, @@ -38,17 +38,6 @@ pub struct Prefs { // TODO: HotKeys? } -impl Default for Prefs { - fn default() -> Prefs { - return Prefs { - device_prefs: DevicePrefs::default(), - view_prefs: ViewPrefs::default(), - behavior_prefs: BehaviorPrefs::default(), - notify_prefs: NotifyPrefs::default(), - }; - } -} - #[derive(Deserialize, Debug, Serialize)] #[serde(default)]