From 33b76e3d198452cee004ed53027235a953d0b5a3 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 22 Aug 2024 21:15:35 +0200 Subject: [PATCH] Inline redundant variables --- crates/fj-core/src/geometry/surface.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/fj-core/src/geometry/surface.rs b/crates/fj-core/src/geometry/surface.rs index 54c9a63b9..faee73b86 100644 --- a/crates/fj-core/src/geometry/surface.rs +++ b/crates/fj-core/src/geometry/surface.rs @@ -69,14 +69,14 @@ impl SurfaceGeom { Path::Circle(circle) => { let params = PathApproxParams::for_circle(circle, tolerance); - let a = point_surface.u - params.increment(); - let b = point_surface.u + params.increment(); - - [a, b] - .map(|point_circle| { - circle.point_from_circle_coords([point_circle]) - }) - .map(|point_global| point_global + self.v * point_surface.v) + [ + point_surface.u - params.increment(), + point_surface.u + params.increment(), + ] + .map(|point_circle| { + circle.point_from_circle_coords([point_circle]) + }) + .map(|point_global| point_global + self.v * point_surface.v) } Path::Line(line) => { // We don't need to approximate a line. So instead of creating a