diff --git a/src/cmp.rs b/src/cmp.rs index 0175466..e3534a0 100644 --- a/src/cmp.rs +++ b/src/cmp.rs @@ -477,7 +477,7 @@ pub fn main(opts: Peekable) -> ExitCode { #[inline] fn format_octal(byte: u8, buf: &mut [u8; 3]) -> &str { - *buf = [b' ', b' ', b'0']; + *buf = *b" 0"; let mut num = byte; let mut idx = 2; // Start at the last position in the buffer @@ -706,8 +706,8 @@ fn report_difference( }; print!( "{} {} differ: {term} {}, line {}", - ¶ms.from.to_string_lossy(), - ¶ms.to.to_string_lossy(), + params.from.to_string_lossy(), + params.to.to_string_lossy(), at_byte, at_line );