remove unnecessary mut

This commit is contained in:
Sebastien Bourdeauducq 2017-05-09 19:06:42 +08:00
parent e4f513d444
commit c7f4dba53a
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ impl Controller {
}
#[allow(dead_code)]
pub fn is_within(&mut self, tolerance: f32) -> bool {
pub fn is_within(&self, tolerance: f32) -> bool {
match self.last_input {
None => false,
Some(last_input) => (last_input - self.target).abs() < tolerance