diff --git a/src/settings.rs b/src/settings.rs index 8412b4a..a8807be 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -30,6 +30,7 @@ impl Settings { return unsafe { DATA.get_ref() }; } + #[allow(unused)] pub fn get_element(&self, index: usize) -> Result { if index >= SETTINGS_SIZE { return Err(AppSW::InternalError); @@ -39,6 +40,7 @@ impl Settings { Ok(settings[index]) } + #[allow(unused)] // can be used to set a value in the settings pub fn set_element(&self, index: usize, value: u8) -> Result<(), AppSW> { if index >= SETTINGS_SIZE {