diff --git a/crates/fj-core/src/operations/build/surface.rs b/crates/fj-core/src/operations/build/surface.rs index ec76916ee..36a6748cf 100644 --- a/crates/fj-core/src/operations/build/surface.rs +++ b/crates/fj-core/src/operations/build/surface.rs @@ -43,15 +43,15 @@ pub trait BuildSurface { v: impl Into>, core: &mut Core, ) -> Handle { - let geometry = SurfaceGeometry { - u: u.into(), - v: v.into(), - }; let surface = Surface::new().insert(core); - core.layers - .geometry - .define_surface(surface.clone(), geometry); + core.layers.geometry.define_surface( + surface.clone(), + SurfaceGeometry { + u: u.into(), + v: v.into(), + }, + ); surface }