Skip to content

Commit

Permalink
Switch off 2 clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fxpineau committed Jan 29, 2024
1 parent 3595475 commit e252b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/moc2d/builder/maxdepths_ranges_cells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ impl<'a, T: Idx, U: Idx> Ord for SweepLineEvent<'a, T, U> {
}
}

#[allow(clippy::non_canonical_partial_ord_impl)]
impl<'a, T: Idx, U: Idx> PartialOrd for SweepLineEvent<'a, T, U> {
// if start == end, we consider the End to be lower than Start (because End is exclusive while
// start is inclusive and we need to remove ended ranges before adding starting ranges)
Expand Down
1 change: 1 addition & 0 deletions src/moc2d/range/op/or.rs
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,7 @@ where
}
};
// Perform the union
#[allow(clippy::comparison_chain)]
if l.start == r.start {
// LR--xx Perform the union !!!
match l.end.cmp(&r.end) {
Expand Down

0 comments on commit e252b0a

Please sign in to comment.