Simplify sort expression.

This commit is contained in:
Nick Lewycky
2020-05-15 16:46:24 -07:00
parent ea05e16b6d
commit 1ee5f27a3a

View File

@ -488,7 +488,7 @@ impl FuncTranslator {
)
})
.collect::<Vec<_>>();
custom_sections.sort_unstable_by(|a, b| a.0.cmp(b.0));
custom_sections.sort_unstable_by_key(|a| a.0);
let custom_sections = custom_sections
.iter()
// TODO: remove usage of clone