Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Pana committed Dec 10, 2024
1 parent b010b2c commit 879728f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl Settings {
return unsafe { DATA.get_ref() };
}

#[allow(unused)]
pub fn get_element(&self, index: usize) -> Result<u8, AppSW> {
if index >= SETTINGS_SIZE {
return Err(AppSW::InternalError);
Expand All @@ -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 {
Expand Down

0 comments on commit 879728f

Please sign in to comment.