From 00ffe55ecd05075ce9ff6b39297320a57ab38f7e Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 5 Jul 2017 20:32:07 +0200 Subject: [PATCH] Rm explicit Prefs Default trait impl --- src/prefs.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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)]