From 88e62d7d6a8e2b6f652be6e6f62f2b7fbbc76118 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 16 Nov 2022 14:09:21 +0100 Subject: [PATCH] Refactor --- crates/fj-kernel/src/algorithms/transform/edge.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/transform/edge.rs b/crates/fj-kernel/src/algorithms/transform/edge.rs index 27d26e8d87..1d960cf20a 100644 --- a/crates/fj-kernel/src/algorithms/transform/edge.rs +++ b/crates/fj-kernel/src/algorithms/transform/edge.rs @@ -3,7 +3,7 @@ use fj_math::Transform; use crate::{ objects::Objects, - partial::{MaybePartial, PartialGlobalEdge, PartialHalfEdge}, + partial::{PartialGlobalEdge, PartialHalfEdge}, validate::ValidationError, }; @@ -15,11 +15,7 @@ impl TransformObject for PartialHalfEdge { transform: &Transform, objects: &Objects, ) -> Result { - let curve: MaybePartial<_> = self - .curve - .into_partial() - .transform(transform, objects)? - .into(); + let curve = self.curve.transform(transform, objects)?; let vertices = self.vertices.try_map_ext( |vertex| -> Result<_, ValidationError> { let mut vertex =