csplit: remove explicit "into_iter()"

This commit is contained in:
Daniel Hofstetter 2023-07-21 10:52:03 +02:00
parent 95cfa94b1b
commit d40a25db5d

View file

@ -127,7 +127,7 @@ where
I: Iterator<Item = (usize, io::Result<String>)>,
{
// split the file based on patterns
for pattern in patterns.into_iter() {
for pattern in patterns {
let pattern_as_str = pattern.to_string();
let is_skip = matches!(pattern, patterns::Pattern::SkipToMatch(_, _, _));
match pattern {