mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 01:39:26 +00:00
Simplify sort expression.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user