Avoid an unneeded .into_iter().

This commit is contained in:
Dan Gohman
2017-11-08 10:41:00 -08:00
parent d939bc5137
commit 7c579a80c2

View File

@@ -50,7 +50,7 @@ fn handle_module(
return Err(String::from("compilation requires a target isa")); 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(); let mut context = Context::new();
context.func = func; context.func = func;
context.compile(isa).map_err(|err| { context.compile(isa).map_err(|err| {