Browse Source

fix clippy issue

pull/28/head
Emil Ernerfeldt 4 years ago
parent
commit
c6fd30ea13
  1. 4
      egui/src/math/pos2.rs

4
egui/src/math/pos2.rs

@ -42,11 +42,11 @@ impl Pos2 {
} }
} }
pub fn distance(self: Self, other: Self) -> f32 { pub fn distance(self, other: Self) -> f32 {
(self - other).length() (self - other).length()
} }
pub fn distance_sq(self: Self, other: Self) -> f32 { pub fn distance_sq(self, other: Self) -> f32 {
(self - other).length_sq() (self - other).length_sq()
} }

Loading…
Cancel
Save