Skip to content

Commit

Permalink
Fix Clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jan 6, 2025
1 parent 56b6297 commit 642807a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ impl Settings {
#[allow(unused)]
pub fn get_mut(&mut self) -> &mut AtomicStorage<[u8; SETTINGS_SIZE]> {
let data = &raw mut DATA;
return unsafe { (*data).get_mut() };
unsafe { (*data).get_mut() }
}

#[inline(never)]
#[allow(unused)]
pub fn get_ref(&mut self) -> &AtomicStorage<[u8; SETTINGS_SIZE]> {
let data = &raw const DATA;
return unsafe { (*data).get_ref() };
unsafe { (*data).get_ref() }
}

#[allow(unused)]
Expand Down

0 comments on commit 642807a

Please sign in to comment.