fix: use total_cmp where possible
This commit is contained in:
parent
288919958e
commit
6cffd2f452
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ impl Linear {
|
|||
let (Ok(index) | Err(index)) =
|
||||
self.stops.binary_search_by(|stop| match stop {
|
||||
None => Ordering::Greater,
|
||||
Some(stop) => stop.offset.partial_cmp(&offset).unwrap(),
|
||||
Some(stop) => stop.offset.total_cmp(&offset),
|
||||
});
|
||||
|
||||
if index < 8 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue