Skip to content

Commit 08946a2

Browse files
committed
fix(uu/cat): remove unnecessary semicolon after match statement in write_nonprint_to_end
Removed a trailing semicolon following the match arms in the `write_nonprint_to_end` function, which was likely causing a compiler warning or style issue in Rust. This ensures cleaner code without altering functionality.
1 parent 18d2ee7 commit 08946a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/cat/src/cat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ fn write_nonprint_to_end<W: Write>(in_buf: &[u8], writer: &mut W, tab: &[u8]) ->
724724
128..=159 => map_write_err(writer.write_all(&[b'M', b'-', b'^', byte - 64]))?,
725725
160..=254 => map_write_err(writer.write_all(&[b'M', b'-', byte - 128]))?,
726726
_ => map_write_err(writer.write_all(b"M-^?"))?,
727-
};
727+
}
728728
count += 1;
729729
}
730730
Ok(count)

0 commit comments

Comments
 (0)