From 49c6adb0db70ffc30eaac33b66eacf7574b34e26 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 10 Feb 2021 23:06:48 +0100 Subject: Fixed most clippy warnings --- src/core/vector2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/vector2.rs') diff --git a/src/core/vector2.rs b/src/core/vector2.rs index 0e0165e..405b12a 100644 --- a/src/core/vector2.rs +++ b/src/core/vector2.rs @@ -112,7 +112,7 @@ impl Vector2i { } impl Vector2f { - pub fn len(&self) -> Float { + pub fn length(&self) -> Float { (self.x*self.x + self.y*self.y).sqrt() } -- cgit v1.2.3