diff --git a/crates/fj/src/shape_2d.rs b/crates/fj/src/shape_2d.rs index fcdb6f1ce..96c72cbe2 100644 --- a/crates/fj/src/shape_2d.rs +++ b/crates/fj/src/shape_2d.rs @@ -134,6 +134,18 @@ impl Sketch { } } +impl From for Shape { + fn from(shape: Sketch) -> Self { + Self::Shape2d(shape.into()) + } +} + +impl From for Shape2d { + fn from(shape: Sketch) -> Self { + Shape2d::Sketch(shape) + } +} + /// A chain of elements that is part of a [`Sketch`] #[derive(Clone, Debug, PartialEq)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] @@ -187,15 +199,3 @@ impl PolyChain { self.points.clone().into() } } - -impl From for Shape { - fn from(shape: Sketch) -> Self { - Self::Shape2d(shape.into()) - } -} - -impl From for Shape2d { - fn from(shape: Sketch) -> Self { - Shape2d::Sketch(shape) - } -}