Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ratmice committed May 30, 2024
1 parent 4a31d30 commit c60ab62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ mod mindist;
pub mod offset;
mod param_curve;
mod point;
mod primitive_shape;
mod quadbez;
mod quadspline;
mod rect;
Expand All @@ -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;
Expand All @@ -126,14 +126,14 @@ 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::*;
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::*;
Expand Down
5 changes: 4 additions & 1 deletion src/primitive_shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PrimitiveShape> = 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() {
Expand Down

0 comments on commit c60ab62

Please sign in to comment.