fix: use total_cmp where possible

This commit is contained in:
Ashley Wulber 2024-12-11 14:37:17 -05:00
parent 288919958e
commit 6cffd2f452
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,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 {