From c001b18fbd5ae5d2fc630bffe5cd80f614bd7f42 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 11 Nov 2022 14:43:51 +0100 Subject: [PATCH] Change style of `update_as_v_axis` --- crates/fj-kernel/src/builder/curve.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/fj-kernel/src/builder/curve.rs b/crates/fj-kernel/src/builder/curve.rs index 9afedb650..2e6b15827 100644 --- a/crates/fj-kernel/src/builder/curve.rs +++ b/crates/fj-kernel/src/builder/curve.rs @@ -8,7 +8,7 @@ pub trait CurveBuilder { fn update_as_u_axis(self) -> Self; /// Update partial curve to represent the v-axis - fn update_as_v_axis(self) -> Self; + fn update_as_v_axis(&mut self) -> &mut Self; /// Update partial curve as a circle, from the provided radius fn update_as_circle_from_radius( @@ -32,12 +32,11 @@ impl CurveBuilder for PartialCurve { self } - fn update_as_v_axis(mut self) -> Self { + fn update_as_v_axis(&mut self) -> &mut Self { let a = Point::origin(); let b = a + Vector::unit_v(); - self.update_as_line_from_points([a, b]); - self + self.update_as_line_from_points([a, b]) } fn update_as_circle_from_radius(