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,7 +22,8 @@ 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()
.add_region(
Region::polygon( Region::polygon(
[ [
[-x / 2., -y / 2.], [-x / 2., -y / 2.],
@ -33,9 +34,7 @@ pub fn model(
services, services,
) )
.insert(services), .insert(services),
); )
sketch
.sweep_sketch(surface, path, services) .sweep_sketch(surface, path, services)
.insert(services) .insert(services)
} }