mirror of
https://github.com/storytold/egui.git
synced 2026-11-22 18:41:52 +01:00
fix clippy issue
This commit is contained in:
1 parent
9f6301e121
commit
c6fd30ea13
1 file changed
+2
-2
@@ -42,11 +42,11 @@ impl Pos2 {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn distance(self: Self, other: Self) -> f32 {
|
||||
pub fn distance(self, other: Self) -> f32 {
|
||||
(self - other).length()
|
||||
}
|
||||
|
||||
pub fn distance_sq(self: Self, other: Self) -> f32 {
|
||||
pub fn distance_sq(self, other: Self) -> f32 {
|
||||
(self - other).length_sq()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user