Fix clippy::into_iter_on_ref

This commit is contained in:
Alan Du 2019-06-04 02:28:50 -04:00
parent 619a615298
commit fb592d76aa
3 changed files with 3 additions and 3 deletions

View file

@ -205,7 +205,7 @@ mod tests {
"The amount of fold kinds is different than the expected amount"
);
for ((fold, range), fold_kind) in
folds.into_iter().zip(ranges.into_iter()).zip(fold_kinds.into_iter())
folds.iter().zip(ranges.into_iter()).zip(fold_kinds.iter())
{
assert_eq!(fold.range.start(), range.start());
assert_eq!(fold.range.end(), range.end());