diff --git a/src/lib.rs b/src/lib.rs index fdc7ca79..ba55262a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -100,6 +100,7 @@ mod mindist; pub mod offset; mod param_curve; mod point; +mod primitive_shape; mod quadbez; mod quadspline; mod rect; @@ -108,7 +109,6 @@ mod rounded_rect_radii; mod shape; pub mod simplify; mod size; -mod primitive_shape; mod stroke; #[cfg(feature = "std")] mod svg; @@ -126,6 +126,7 @@ pub use crate::insets::*; pub use crate::line::*; pub use crate::param_curve::*; pub use crate::point::*; +pub use crate::primitive_shape::*; pub use crate::quadbez::*; pub use crate::quadspline::*; pub use crate::rect::*; @@ -133,7 +134,6 @@ pub use crate::rounded_rect::*; pub use crate::rounded_rect_radii::*; pub use crate::shape::*; pub use crate::size::*; -pub use crate::primitive_shape::*; pub use crate::stroke::*; #[cfg(feature = "std")] pub use crate::svg::*; diff --git a/src/primitive_shape.rs b/src/primitive_shape.rs index 32c9f695..d830de47 100644 --- a/src/primitive_shape.rs +++ b/src/primitive_shape.rs @@ -161,7 +161,10 @@ mod test { let r = crate::Rect::from_origin_size((0.0, 0.0), (1.0, 1.0)); let l = crate::Line::new((0.0, 0.0), (0.5, 0.5)); let shapes: Vec = vec![r.into(), l.into()]; - assert_eq!(shapes, vec![PrimitiveShape::Rect(r), PrimitiveShape::Line(l),]); + assert_eq!( + shapes, + vec![PrimitiveShape::Rect(r), PrimitiveShape::Line(l),] + ); } #[test] fn test_external() {