layout: Fix warning
This fixes
warning: unnecessary parentheses around block return value
--> /var/scratch/librem5/squeekboard/src/layout.rs:110:13
|
110 | / (point.x > self.x && point.x < self.x + self.width
111 | | && point.y > self.y && point.y < self.y + self.height)
| |______________________________________________________________________^
|
= note: `#[warn(unused_parens)]` on by default
This commit is contained in:
@ -107,8 +107,8 @@ pub mod c {
|
||||
|
||||
impl Bounds {
|
||||
pub fn contains(&self, point: &Point) -> bool {
|
||||
(point.x > self.x && point.x < self.x + self.width
|
||||
&& point.y > self.y && point.y < self.y + self.height)
|
||||
point.x > self.x && point.x < self.x + self.width
|
||||
&& point.y > self.y && point.y < self.y + self.height
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user