Skip to content

Commit

Permalink
Use iter() not into_iter() on arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 29, 2019
1 parent 8e6a456 commit 8a39b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod tests {
"../a",
"/hello\0",
];
for v in invalid_cases.into_iter() {
for v in invalid_cases.iter() {
if Apath::is_valid(v) {
panic!("{:?} incorrectly marked valid", v);
}
Expand Down

0 comments on commit 8a39b7f

Please sign in to comment.