diff --git a/src/services/apt.rs b/src/services/apt.rs index 612fdf7..8f50570 100644 --- a/src/services/apt.rs +++ b/src/services/apt.rs @@ -86,7 +86,7 @@ impl Apt { unsafe { apt::aptReturnToMenu() } } - pub fn main_loop(&mut self) -> bool { + pub fn main_loop(&self) -> bool { unsafe { match apt::aptMainLoop() { 1 => true, diff --git a/src/services/hid.rs b/src/services/hid.rs index a9e7954..1719c32 100644 --- a/src/services/hid.rs +++ b/src/services/hid.rs @@ -89,7 +89,7 @@ impl Hid { } } - pub fn scan_input(&mut self) { + pub fn scan_input(&self) { unsafe { hid::hidScanInput() }; }