Eliminate more unnecessary calls to .iter().

This commit is contained in:
Dan Gohman
2017-08-31 16:51:06 -07:00
parent de02976162
commit 566c772e20
4 changed files with 7 additions and 7 deletions

View File

@@ -69,8 +69,8 @@ fn handle_module(path: PathBuf) -> Result<(), String> {
}
}
};
for func in translation.functions.iter() {
let il = match *func {
for func in translation.functions {
let il = match func {
FunctionTranslation::Import() => continue,
FunctionTranslation::Code { ref il, .. } => il.clone(),
};