chore(compiler-cranelift) It's cheaper to copy TargetFrontendConfig rather than ref.

Learn more at https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref.
This commit is contained in:
Ivan Enderlin
2020-06-09 14:39:06 +02:00
parent 05261d4094
commit ce2379622a
6 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ impl Compiler for CraneliftCompiler {
let signatures = module
.signatures
.iter()
.map(|(_sig_index, func_type)| signature_to_cranelift_ir(func_type, &frontend_config))
.map(|(_sig_index, func_type)| signature_to_cranelift_ir(func_type, frontend_config))
.collect::<PrimaryMap<SignatureIndex, ir::Signature>>();
let functions = function_body_inputs