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

+1 -1
View File
@@ -566,7 +566,7 @@ mod tests {
count: 1000,
};
let mut d = st.make();
d.sort_unstable_by(|&(ref a, _), &(ref b, _)| a.cmp(b));
d.sort_by(|&(ref a, _), &(ref b, _)| a.cmp(b));
let dr = d.iter().map(|v| (&v.0[..], &v.1[..])).collect();
check_equivalent::<Layout>(&dr);
check_iteration::<Layout>(&dr);