mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
clippy fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user