From a0a470009b00384128ecc1393e07b42891025494 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 11 Oct 2024 19:29:22 +0200 Subject: [PATCH] Inline redundant variable --- crates/fj-core/src/algorithms/bounding_volume/face.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fj-core/src/algorithms/bounding_volume/face.rs b/crates/fj-core/src/algorithms/bounding_volume/face.rs index 2c5116258..dc8d54dd4 100644 --- a/crates/fj-core/src/algorithms/bounding_volume/face.rs +++ b/crates/fj-core/src/algorithms/bounding_volume/face.rs @@ -40,8 +40,7 @@ impl super::BoundingVolume<3> for &Face { // Let's just choose a reasonable tolerance value here, // then make sure we enlarge the AABB accordingly, to // make sure it fits. - let tolerance_f64 = 0.001; - let tolerance = Tolerance::from_scalar(tolerance_f64) + let tolerance = Tolerance::from_scalar(0.001) .expect("Tolerance provided is larger than zero"); let offset = Vector::from([tolerance.inner(); 3]);