diff --git a/src/uu/csplit/src/csplit.rs b/src/uu/csplit/src/csplit.rs index a5b6c06b0..d1925308e 100644 --- a/src/uu/csplit/src/csplit.rs +++ b/src/uu/csplit/src/csplit.rs @@ -127,7 +127,7 @@ where I: Iterator)>, { // 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 {