Cleanup our sort usage (#6754)

This commit is contained in:
Gavin Wood authored and GitHub committed 2020-07-29 14:00:51 +02:00
1 parent 1ab7719314
commit 6bfbb7c6f1
12 files changed
+16 -16

No files matched your search

@@ -57,7 +57,7 @@ impl RegisteredProtocol {
id: protocol,
supported_versions: {
let mut tmp = versions.to_vec();
tmp.sort_unstable_by(|a, b| b.cmp(&a));
tmp.sort_by(|a, b| b.cmp(&a));
tmp
},
handshake_message,