Loop over references to containers instead of using explicit iteration methods.

https://github.com/rust-lang-nursery/rust-clippy/wiki#explicit_iter_loop
This commit is contained in:
Dan Gohman
2017-08-10 13:59:46 -07:00
parent 03698f6bc8
commit 8647b10135
4 changed files with 5 additions and 5 deletions

View File

@@ -506,7 +506,7 @@ fn translate_operator(op: &Operator,
Operator::BrTable { ref table } => {
let (depths, default) = table.read_table();
let mut min_depth = default;
for depth in depths.iter() {
for depth in &depths {
if *depth < min_depth {
min_depth = *depth;
}