Avoid unneeded passing by value.

https://github.com/rust-lang-nursery/rust-clippy/wiki#needless_pass_by_value
This commit is contained in:
Dan Gohman
2017-08-31 11:49:33 -07:00
parent b6641ff443
commit 574031e4d2
3 changed files with 4 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ pub fn translate_type(ty: wasmparser::Type) -> Result<Vec<cretonne::ir::Type>, (
/// feeding the function indexes in the module but are used by the runtime with the `FuncRef` as
/// keys.
pub fn invert_hashmaps(
imports: code_translator::FunctionImports,
imports: &code_translator::FunctionImports,
) -> module_translator::ImportMappings {
let mut new_imports = module_translator::ImportMappings::new();
for (func_index, func_ref) in &imports.functions {