mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 09:19:25 +00:00
Remove some calls to clone() by using into_iter().
This commit is contained in:
@ -490,9 +490,8 @@ impl FuncTranslator {
|
||||
.collect::<Vec<_>>();
|
||||
custom_sections.sort_unstable_by_key(|a| a.0);
|
||||
let custom_sections = custom_sections
|
||||
.iter()
|
||||
// TODO: remove usage of clone
|
||||
.map(|(k, v)| v.clone())
|
||||
.into_iter()
|
||||
.map(|(k, v)| v)
|
||||
.collect::<PrimaryMap<SectionIndex, _>>();
|
||||
|
||||
let function_body = FunctionBody {
|
||||
|
Reference in New Issue
Block a user