aboutsummaryrefslogtreecommitdiff
path: root/src/core/vector2.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-10 23:06:48 +0100
committerJulian T <julian@jtle.dk>2021-02-10 23:06:48 +0100
commit49c6adb0db70ffc30eaac33b66eacf7574b34e26 (patch)
tree60f828ce8abf962fe2d88fdeb4e04db1d7663253 /src/core/vector2.rs
parent3a144c8c1fc83150fc06d792082db5cc4bce3cc5 (diff)
Fixed most clippy warnings
Diffstat (limited to 'src/core/vector2.rs')
-rw-r--r--src/core/vector2.rs2
1 files changed, 1 insertions, 1 deletions
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()
}