Skip to content

Commit 1f54605

Browse files
pscottbkchrkianenigma
authored
Improve overall performance (#6699)
* Improve overall performance * Clean up code Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Remove needless :: Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Remove needless :: Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
1 parent e37f73c commit 1f54605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ decl_module! {
355355
// if there is already an element with `score`, we insert
356356
// right before that. if not, the search returns a location
357357
// where we can insert while maintaining order.
358-
let item = (who.clone(), Some(score.clone()));
358+
let item = (who, Some(score.clone()));
359359
let location = pool
360360
.binary_search_by_key(
361361
&Reverse(score),

0 commit comments

Comments
 (0)