Fix redundant borrows.

This commit is contained in:
Dan Gohman
2017-09-22 16:11:11 -07:00
parent 382415ed0c
commit b583d75c7a
2 changed files with 5 additions and 12 deletions

View File

@@ -83,7 +83,7 @@ pub fn compile_module(
let mut functions_code = Vec::new();
for (function_index, function) in trans_result.functions.iter().enumerate() {
let mut context = Context::new();
verify_function(&function, isa).unwrap();
verify_function(function, isa).unwrap();
context.func = function.clone(); // TODO: Avoid this clone.
let code_size = context.compile(isa).map_err(|e| {
pretty_error(&context.func, Some(isa), e)