diff --git a/src/uu/dd/src/dd.rs b/src/uu/dd/src/dd.rs index 72aee3991..678f1769e 100644 --- a/src/uu/dd/src/dd.rs +++ b/src/uu/dd/src/dd.rs @@ -568,7 +568,7 @@ impl Input<'_> { bytes_total += rlen; reads_partial += 1; let padding = vec![pad; target_len - rlen]; - buf.splice(base_idx + rlen..next_blk, padding.into_iter()); + buf.splice(base_idx + rlen..next_blk, padding); } rlen => { bytes_total += rlen; diff --git a/src/uu/dircolors/src/dircolors.rs b/src/uu/dircolors/src/dircolors.rs index 154d879b6..2bf8b517e 100644 --- a/src/uu/dircolors/src/dircolors.rs +++ b/src/uu/dircolors/src/dircolors.rs @@ -364,7 +364,7 @@ where let mut state = ParseState::Global; let mut saw_colorterm_match = false; - for (num, line) in (1..).zip(user_input.into_iter()) { + for (num, line) in (1..).zip(user_input) { let line = line.borrow().purify(); if line.is_empty() { continue; diff --git a/src/uu/od/src/parse_formats.rs b/src/uu/od/src/parse_formats.rs index e3312b876..b6cd91b4d 100644 --- a/src/uu/od/src/parse_formats.rs +++ b/src/uu/od/src/parse_formats.rs @@ -121,7 +121,7 @@ pub fn parse_format_flags(args: &[String]) -> Result Result Result