We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::needless_borrow
1 parent 3c1b4cf commit 4601ee7Copy full SHA for 4601ee7
src/binary_heap.rs
@@ -288,7 +288,7 @@ pub struct MaxComparator;
288
289
impl<T: Ord> Compare<T> for MaxComparator {
290
fn compare(&self, a: &T, b: &T) -> Ordering {
291
- a.cmp(&b)
+ a.cmp(b)
292
}
293
294
@@ -300,7 +300,7 @@ pub struct MinComparator;
300
301
impl<T: Ord> Compare<T> for MinComparator {
302
303
- b.cmp(&a)
+ b.cmp(a)
304
305
306
0 commit comments