From 642807a0427e2216e1d0c81d63d4742d0612e2cf Mon Sep 17 00:00:00 2001 From: GroM Date: Mon, 6 Jan 2025 15:38:06 +0100 Subject: [PATCH] Fix Clippy issue --- src/settings.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings.rs b/src/settings.rs index 612b931..b8277a7 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -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)]