mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Enable and fix some more clippy lints (#7426)
One can never have too many lints
This commit is contained in:
@@ -331,8 +331,8 @@ impl Rect {
|
||||
#[inline(always)]
|
||||
pub fn center(&self) -> Pos2 {
|
||||
Pos2 {
|
||||
x: (self.min.x + self.max.x) / 2.0,
|
||||
y: (self.min.y + self.max.y) / 2.0,
|
||||
x: f32::midpoint(self.min.x, self.max.x),
|
||||
y: f32::midpoint(self.min.y, self.max.y),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user