diff --git a/cranelift/src/compile.rs b/cranelift/src/compile.rs index 828625120a..9e828cfed2 100644 --- a/cranelift/src/compile.rs +++ b/cranelift/src/compile.rs @@ -50,7 +50,7 @@ fn handle_module( return Err(String::from("compilation requires a target isa")); }; - for (func, _) in test_file.functions.into_iter() { + for (func, _) in test_file.functions { let mut context = Context::new(); context.func = func; context.compile(isa).map_err(|err| {