From db0f1aae4da4fb011d31e5cfca7a56ae8a7db7e0 Mon Sep 17 00:00:00 2001 From: Rouven Spreckels Date: Wed, 12 Jun 2024 18:56:58 +0200 Subject: [PATCH] Fix nightly. --- src/first.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/first.rs b/src/first.rs index c446548..05b4a25 100644 --- a/src/first.rs +++ b/src/first.rs @@ -23,11 +23,7 @@ impl First { /// Carries cursor/finger displacements to arcs of the same length on great circles of an /// eye-centered trackball with radius of maximum of half the screen's width and height in /// compliance with [`crate::Orbit`] except that its trackball is target-centered. - pub fn compute( - &mut self, - vec: &Vector2, - max: &Point2, - ) -> Option<(N, N, &Unit>)> { + pub fn compute(&self, vec: &Vector2, max: &Point2) -> Option<(N, N, &Unit>)> { self.ray.as_ref().map(|ray| { let max = max.x.max(max.y) * convert(0.5); (vec.y / max, vec.x / max, ray)