aboutsummaryrefslogtreecommitdiff
path: root/src/camera/camera.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/camera/camera.rs
parent3a144c8c1fc83150fc06d792082db5cc4bce3cc5 (diff)
Fixed most clippy warnings
Diffstat (limited to 'src/camera/camera.rs')
-rw-r--r--src/camera/camera.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera/camera.rs b/src/camera/camera.rs
index 4d05e87..241d26b 100644
--- a/src/camera/camera.rs
+++ b/src/camera/camera.rs
@@ -79,7 +79,7 @@ impl Camera {
// Calculate translation vectors
let mut forward = set.target - set.origin;
- let focus = set.focus.unwrap_or(forward.len());
+ let focus = set.focus.unwrap_or_else(|| forward.length());
forward.norm_in();