diff --git a/crates/fj-kernel/src/algorithms/transform.rs b/crates/fj-kernel/src/algorithms/transform.rs index 6bdbc8262..fe66dd1e3 100644 --- a/crates/fj-kernel/src/algorithms/transform.rs +++ b/crates/fj-kernel/src/algorithms/transform.rs @@ -68,7 +68,9 @@ impl TransformObject for Face { let surface = self.surface().transform(transform); let exterior = self.exterior().clone().transform(transform); - let interiors = transform_cycles(self.interiors(), transform); + let interiors = self + .interiors() + .map(|cycle| cycle.clone().transform(transform)); let color = self.color(); @@ -157,12 +159,3 @@ impl TransformObject for Vertex { ) } } - -fn transform_cycles<'a>( - cycles: impl IntoIterator + 'a, - transform: &'a Transform, -) -> impl Iterator + 'a { - cycles - .into_iter() - .map(|cycle| cycle.clone().transform(transform)) -}