Skip to content

Commit 3d63cc2

Browse files
authored
fix new clippy warnings (#2145)
[no important files changed]
1 parent b1ecc0b commit 3d63cc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exercises/practice/nucleotide-codons/tests/nucleotide_codons.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ fn make_pairs() -> Vec<(&'static str, &'static str)> {
110110
pairs.push((codon, name));
111111
}
112112
}
113-
pairs.sort_by(|&(_, a), &(_, b)| a.cmp(b));
113+
pairs.sort_by_key(|&(_, name)| name);
114114
pairs
115115
}

0 commit comments

Comments
 (0)