clippy fixes

This commit is contained in:
2022-02-22 22:40:45 +01:00
parent ce8435e3dc
commit 1b434f6b30
6 changed files with 34 additions and 43 deletions

View File

@@ -66,7 +66,7 @@ pub fn emit(script: &ast::Script, module_name: &str, options: &Options) -> Vec<u
function_map.insert(name.clone(), function_map.len() as u32);
EntityType::Function(
*function_types
.get(&(params.clone(), result.clone()))
.get(&(params.clone(), *result))
.unwrap() as u32,
)
}
@@ -255,7 +255,7 @@ fn collect_function_types(script: &ast::Script) -> HashMap<FunctionTypeKey, usiz
{
let index = types.len();
types
.entry((params.clone(), result.clone()))
.entry((params.clone(), *result))
.or_insert(index);
}
}