Commit a45a3d7
committed
rcb: use crate::partial_cmp for select_nth
Since this makes half as many float comparisons and select_nth_unstable
ends up only matching for Ordering::Less anyway:
https://github.com/rust-lang/rust/blob/cb0584f86b8cfa952dffad55f7d83bd90765120f/library/core/src/slice/mod.rs#L27191 parent 8e51c88 commit a45a3d7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments