made clippy happy

This commit is contained in:
MaxOhn
2024-02-22 20:35:58 +01:00
parent 8f299af49f
commit ae14815140
11 changed files with 21 additions and 47 deletions
+2 -2
View File
@@ -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`
+1 -1
View File
@@ -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);
}
}