mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
fix clippy issue
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user