mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-26 10:19:27 +00:00
Simplify sort expression.
This commit is contained in:
@ -488,7 +488,7 @@ impl FuncTranslator {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.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
|
let custom_sections = custom_sections
|
||||||
.iter()
|
.iter()
|
||||||
// TODO: remove usage of clone
|
// TODO: remove usage of clone
|
||||||
|
Reference in New Issue
Block a user