From c6fd30ea1335ab2e05576f4872541e6b60eb4d48 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Thu, 8 Oct 2020 22:24:55 +0200 Subject: [PATCH] fix clippy issue --- egui/src/math/pos2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egui/src/math/pos2.rs b/egui/src/math/pos2.rs index 91e4c7f60..c2310217a 100644 --- a/egui/src/math/pos2.rs +++ b/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() } - pub fn distance_sq(self: Self, other: Self) -> f32 { + pub fn distance_sq(self, other: Self) -> f32 { (self - other).length_sq() }