From bb7d389be6f42f98db468098caab1196ccc88640 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Fri, 22 Sep 2017 14:53:39 +0200 Subject: [PATCH] utils: fmt --- src/utils/rectangle.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/rectangle.rs b/src/utils/rectangle.rs index d643c01..f3953f5 100644 --- a/src/utils/rectangle.rs +++ b/src/utils/rectangle.rs @@ -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) } -} \ No newline at end of file +}