Inline redundant variable

This commit is contained in:
Hanno Braun 2023-12-14 12:52:18 +01:00
parent 0e6b4037a4
commit 051c47d09a

View File

@ -22,20 +22,19 @@ pub fn model(
let surface = services.objects.surfaces.xy_plane(); let surface = services.objects.surfaces.xy_plane();
let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]); let path = Vector::from([Scalar::ZERO, Scalar::ZERO, z]);
let sketch = Sketch::empty().add_region( Sketch::empty()
Region::polygon( .add_region(
[ Region::polygon(
[-x / 2., -y / 2.], [
[x / 2., -y / 2.], [-x / 2., -y / 2.],
[x / 2., y / 2.], [x / 2., -y / 2.],
[-x / 2., y / 2.], [x / 2., y / 2.],
], [-x / 2., y / 2.],
services, ],
services,
)
.insert(services),
) )
.insert(services),
);
sketch
.sweep_sketch(surface, path, services) .sweep_sketch(surface, path, services)
.insert(services) .insert(services)
} }