utils: fmt

This commit is contained in:
Victor Berger 2017-09-22 14:53:39 +02:00
parent 648da00c6a
commit bb7d389be6
1 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,6 @@ impl Rectangle {
/// Checks wether given point is inside a rectangle
pub fn contains(&self, point: (i32, i32)) -> bool {
let (x, y) = point;
(x >= self.x) && (x < self.x + self.width)
&& (y >= self.y) && (y < self.y + self.height)
(x >= self.x) && (x < self.x + self.width) && (y >= self.y) && (y < self.y + self.height)
}
}
}