Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 16, 2022
1 parent 6e8524f commit e34db7e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/fj-kernel/src/algorithms/transform/edge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use fj_math::Transform;

use crate::{
objects::Objects,
partial::{MaybePartial, PartialGlobalEdge, PartialHalfEdge},
partial::{PartialGlobalEdge, PartialHalfEdge},
validate::ValidationError,
};

Expand All @@ -15,11 +15,7 @@ impl TransformObject for PartialHalfEdge {
transform: &Transform,
objects: &Objects,
) -> Result<Self, ValidationError> {
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 =
Expand Down

0 comments on commit e34db7e

Please sign in to comment.