From bc2cdd739b2815fe23a1aa3158788889135b4c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Tue, 18 Oct 2022 11:52:48 +0200 Subject: [PATCH] userprefs: allow dead code on UserPrefs struct Remove lock-related variables, not needed anymore, also added autobacklight timeout --- libs/userprefs/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/userprefs/src/lib.rs b/libs/userprefs/src/lib.rs index 771b81f84..4b67044da 100644 --- a/libs/userprefs/src/lib.rs +++ b/libs/userprefs/src/lib.rs @@ -35,12 +35,12 @@ impl From for Error { /// To add a new preference setting just drop a new struct entry in here. /// The struct field type must be serializable by bincode. #[derive(prefsgenerator::GetterSetter)] +#[allow(dead_code)] // Allowing dead code here because UserPrefs is used to generate getter/setters. struct UserPrefs { radio_on_on_boot: bool, connect_known_networks_on_boot: bool, autobacklight_on_boot: bool, - password_after_sleep: bool, - close_bases_on_lock: bool, + autobacklight_timeout: u64, } pub struct Manager {