1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 17:51:07 +00:00

fix a map-clone warning

This commit is contained in:
Sylvestre Ledru 2021-10-23 19:19:52 +02:00
parent 4c8b74797f
commit 3ffc4c07eb

View file

@ -588,7 +588,7 @@ fn write_tab_to_end<W: Write>(mut in_buf: &[u8], writer: &mut W) -> usize {
fn write_nonprint_to_end<W: Write>(in_buf: &[u8], writer: &mut W, tab: &[u8]) -> usize {
let mut count = 0;
for byte in in_buf.iter().map(|c| *c) {
for byte in in_buf.iter().copied() {
if byte == b'\n' {
break;
}