mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-01 15:09:17 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user