Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JmsPae committed Jan 11, 2025
1 parent ba52fb7 commit aa67203
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/vector/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,27 +610,15 @@ mod tests {
assert!(CoordinateLayout::Xyz.has_component(CoordinateLayout::X));
assert!(CoordinateLayout::Xyz.has_component(CoordinateLayout::Y));
assert!(CoordinateLayout::Xyz.has_component(CoordinateLayout::Z));
assert_eq!(
CoordinateLayout::Xyz.has_component(CoordinateLayout::M),
false
);
assert!(!CoordinateLayout::Xyz.has_component(CoordinateLayout::M));

assert_eq!(
CoordinateLayout::Xym.has_component(CoordinateLayout::Z),
false
);
assert!(!CoordinateLayout::Xym.has_component(CoordinateLayout::Z));
assert!(CoordinateLayout::Xym.has_component(CoordinateLayout::M));

assert!(CoordinateLayout::Xy.has_component(CoordinateLayout::X));
assert!(CoordinateLayout::Xy.has_component(CoordinateLayout::Y));
assert_eq!(
CoordinateLayout::Xy.has_component(CoordinateLayout::Z),
false
);
assert_eq!(
CoordinateLayout::Xy.has_component(CoordinateLayout::M),
false
);
assert!(!CoordinateLayout::Xy.has_component(CoordinateLayout::Z));
assert!(!CoordinateLayout::Xy.has_component(CoordinateLayout::M));

assert_eq!(CoordinateLayout::Xy.coordinate_size(), 2);
assert_eq!(CoordinateLayout::Xyz.coordinate_size(), 3);
Expand Down

0 comments on commit aa67203

Please sign in to comment.