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.
1 parent e37f73c commit 1f54605Copy full SHA for 1f54605
src/lib.rs
@@ -355,7 +355,7 @@ decl_module! {
355
// if there is already an element with `score`, we insert
356
// right before that. if not, the search returns a location
357
// where we can insert while maintaining order.
358
- let item = (who.clone(), Some(score.clone()));
+ let item = (who, Some(score.clone()));
359
let location = pool
360
.binary_search_by_key(
361
&Reverse(score),
0 commit comments