From 19ad4456dd6152754fe620948ff8486c42e8993b Mon Sep 17 00:00:00 2001
From: Hanno Braun <hanno@braun-odw.eu>
Date: Thu, 14 Dec 2023 13:18:44 +0100
Subject: [PATCH] Inline redundant variable

---
 models/star/src/lib.rs | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/models/star/src/lib.rs b/models/star/src/lib.rs
index 758210e38c..936c7a3cfa 100644
--- a/models/star/src/lib.rs
+++ b/models/star/src/lib.rs
@@ -46,15 +46,14 @@ pub fn model(
     let surface = services.objects.surfaces.xy_plane();
     let path = Vector::from([0., 0., h]);
 
-    let sketch = Sketch::empty().add_region(
-        Region::polygon(outer_points, services)
-            .add_interiors([Cycle::polygon(inner_points, services)
-                .reverse(services)
-                .insert(services)])
-            .insert(services),
-    );
-
-    sketch
+    Sketch::empty()
+        .add_region(
+            Region::polygon(outer_points, services)
+                .add_interiors([Cycle::polygon(inner_points, services)
+                    .reverse(services)
+                    .insert(services)])
+                .insert(services),
+        )
         .sweep_sketch(surface, path, services)
         .insert(services)
 }