diff options
author | Alan Du <[email protected]> | 2019-06-04 07:28:50 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2019-06-04 23:05:07 +0100 |
commit | fb592d76aa24e8fe74694038c283f56ea83ab568 (patch) | |
tree | 414c1366892c61cc42812c1697726308ac1f25a1 /crates/ra_ide_api | |
parent | 619a61529878f82daf7aed571bc4f6a10bd6dd9f (diff) |
Fix clippy::into_iter_on_ref
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/folding_ranges.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/folding_ranges.rs b/crates/ra_ide_api/src/folding_ranges.rs index b50bbee38..4400ff232 100644 --- a/crates/ra_ide_api/src/folding_ranges.rs +++ b/crates/ra_ide_api/src/folding_ranges.rs | |||
@@ -205,7 +205,7 @@ mod tests { | |||
205 | "The amount of fold kinds is different than the expected amount" | 205 | "The amount of fold kinds is different than the expected amount" |
206 | ); | 206 | ); |
207 | for ((fold, range), fold_kind) in | 207 | for ((fold, range), fold_kind) in |
208 | folds.into_iter().zip(ranges.into_iter()).zip(fold_kinds.into_iter()) | 208 | folds.iter().zip(ranges.into_iter()).zip(fold_kinds.iter()) |
209 | { | 209 | { |
210 | assert_eq!(fold.range.start(), range.start()); | 210 | assert_eq!(fold.range.start(), range.start()); |
211 | assert_eq!(fold.range.end(), range.end()); | 211 | assert_eq!(fold.range.end(), range.end()); |