made clippy happy
This commit is contained in:
@@ -2,8 +2,8 @@ pub trait FloatExt: Sized {
|
||||
/// Workaround since rust rounds ties away from 0.0
|
||||
/// while C# rounds them to the nearest even integer.
|
||||
/// See github
|
||||
/// - https://github.com/rust-lang/rust/issues/96710
|
||||
/// - https://github.com/rust-lang/rust/pull/82273
|
||||
/// - <https://github.com/rust-lang/rust/issues/96710>
|
||||
/// - <https://github.com/rust-lang/rust/pull/82273>
|
||||
fn round_even(self) -> Self;
|
||||
|
||||
/// `self == other`
|
||||
|
||||
@@ -53,6 +53,6 @@ where
|
||||
|
||||
fn swap<T>(keys: &mut [T], i: usize, j: usize) {
|
||||
if i != j {
|
||||
keys.swap(i, j)
|
||||
keys.swap(i, j);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user