Browse Source

remove unnecessary mutable self-borrows

pull/10/head
Fenrir 9 years ago
parent
commit
aba0449bff
  1. 2
      src/services/apt.rs
  2. 2
      src/services/hid.rs

2
src/services/apt.rs

@ -86,7 +86,7 @@ impl Apt {
unsafe { apt::aptReturnToMenu() } unsafe { apt::aptReturnToMenu() }
} }
pub fn main_loop(&mut self) -> bool { pub fn main_loop(&self) -> bool {
unsafe { unsafe {
match apt::aptMainLoop() { match apt::aptMainLoop() {
1 => true, 1 => true,

2
src/services/hid.rs

@ -89,7 +89,7 @@ impl Hid {
} }
} }
pub fn scan_input(&mut self) { pub fn scan_input(&self) {
unsafe { hid::hidScanInput() }; unsafe { hid::hidScanInput() };
} }

Loading…
Cancel
Save