diff --git a/crates/fj-operations/src/circle.rs b/crates/fj-operations/src/circle.rs index 8e0fadaaf..cebc6d7da 100644 --- a/crates/fj-operations/src/circle.rs +++ b/crates/fj-operations/src/circle.rs @@ -39,9 +39,7 @@ impl ToShape for fj::Circle { )) .get(); - let shape = validate(vec![face], config)?; - - Ok(shape) + validate(vec![face], config) } fn bounding_volume(&self) -> Aabb<3> { diff --git a/crates/fj-operations/src/difference_2d.rs b/crates/fj-operations/src/difference_2d.rs index 7837d9e36..2b4dc09f4 100644 --- a/crates/fj-operations/src/difference_2d.rs +++ b/crates/fj-operations/src/difference_2d.rs @@ -80,9 +80,7 @@ impl ToShape for fj::Difference2d { )); } - let difference = validate(difference, config)?; - - Ok(difference) + validate(difference, config) } fn bounding_volume(&self) -> Aabb<3> { diff --git a/crates/fj-operations/src/group.rs b/crates/fj-operations/src/group.rs index ac7a55c98..e873b1d1f 100644 --- a/crates/fj-operations/src/group.rs +++ b/crates/fj-operations/src/group.rs @@ -23,9 +23,7 @@ impl ToShape for fj::Group { shape.extend(a.into_inner()); shape.extend(b.into_inner()); - let shape = validate(shape, config)?; - - Ok(shape) + validate(shape, config) } fn bounding_volume(&self) -> Aabb<3> { diff --git a/crates/fj-operations/src/sketch.rs b/crates/fj-operations/src/sketch.rs index 0c26e061b..643a25522 100644 --- a/crates/fj-operations/src/sketch.rs +++ b/crates/fj-operations/src/sketch.rs @@ -27,9 +27,7 @@ impl ToShape for fj::Sketch { .build() .get(); - let shape = validate(vec![sketch], config)?; - - Ok(shape) + validate(vec![sketch], config) } fn bounding_volume(&self) -> Aabb<3> { diff --git a/crates/fj-operations/src/sweep.rs b/crates/fj-operations/src/sweep.rs index cbfe53d65..268e7c325 100644 --- a/crates/fj-operations/src/sweep.rs +++ b/crates/fj-operations/src/sweep.rs @@ -21,9 +21,7 @@ impl ToShape for fj::Sweep { let swept = sweep(shape.into_inner(), path, tolerance, color); - let swept = validate(swept, config)?; - - Ok(swept) + validate(swept, config) } fn bounding_volume(&self) -> Aabb<3> { diff --git a/crates/fj-operations/src/transform.rs b/crates/fj-operations/src/transform.rs index c3050ddbc..656aa57b6 100644 --- a/crates/fj-operations/src/transform.rs +++ b/crates/fj-operations/src/transform.rs @@ -20,9 +20,7 @@ impl ToShape for fj::Transform { let faces = transform(&shape, &make_transform(self)); - let shape = validate(faces, config)?; - - Ok(shape) + validate(faces, config) } fn bounding_volume(&self) -> Aabb<3> {