From 6d13bcf2da6486feebd8ec20078c9a7926a7e80e Mon Sep 17 00:00:00 2001 From: kevgeniy Date: Fri, 18 Nov 2016 22:30:12 +0300 Subject: [PATCH] cat: fixed indentation --- src/cat/cat.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/cat/cat.rs b/src/cat/cat.rs index cbcf774ba..fb0c6cc16 100644 --- a/src/cat/cat.rs +++ b/src/cat/cat.rs @@ -231,15 +231,14 @@ fn write_nonprint_to_end(in_buf: &[u8], writer: &mut W, tab: &[u8]) -> break; } match byte { - 9 => writer.write_all(tab), - 0...8 | 10...31 => writer.write_all(&['^' as u8, byte + 64]), - 32...126 => writer.write_all(&[byte]), - 127 => writer.write_all(&['^' as u8, byte - 64]), - 128...159 => writer.write_all(&['M' as u8, '-' as u8, '^' as u8, byte - 64]), - 160...254 => writer.write_all(&['M' as u8, '-' as u8, byte - 128]), - _ => writer.write_all(&['M' as u8, '-' as u8, '^' as u8, 63]), - } - .unwrap(); + 9 => writer.write_all(tab), + 0...8 | 10...31 => writer.write_all(&['^' as u8, byte + 64]), + 32...126 => writer.write_all(&[byte]), + 127 => writer.write_all(&['^' as u8, byte - 64]), + 128...159 => writer.write_all(&['M' as u8, '-' as u8, '^' as u8, byte - 64]), + 160...254 => writer.write_all(&['M' as u8, '-' as u8, byte - 128]), + _ => writer.write_all(&['M' as u8, '-' as u8, '^' as u8, 63]), + }.unwrap(); count += 1; } if count != in_buf.len() { count + 1 } else { 0 }