Commit 320afab
committed
clippy: fix a couple nits
Running `cargo +nightly clippy --all-features` finds a couple things in
the compiler. Fix these. One is a subtle change to our `OrdF64` type:
this is a wrapper type to add `Ord` to f64, panicking in the case that
we hit NaN.
Previously our `Ord` impl would panic but our `PartialOrd` impl would
not. Now they both do.1 parent 51fb100 commit 320afab
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
1096 | | - | |
| 1096 | + | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| |||
0 commit comments