Skip to content

Commit

Permalink
Inline redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Mar 13, 2024
1 parent a4db923 commit 4047ba6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/fj-core/src/operations/build/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ pub trait BuildSurface {
v: impl Into<Vector<3>>,
core: &mut Core,
) -> Handle<Surface> {
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
}
Expand Down

0 comments on commit 4047ba6

Please sign in to comment.