From aba0449bffae55c48cf23b21e299689735abe969 Mon Sep 17 00:00:00 2001 From: Fenrir Date: Mon, 1 Aug 2016 21:32:59 -0700 Subject: [PATCH] remove unnecessary mutable self-borrows --- src/services/apt.rs | 2 +- src/services/hid.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }; }