diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ fn process_input(reader: impl Read, writer: &mut impl Write, opts: &Opts) -> Res let parsed = match *c { b'\t' if opts.show_tabs => b"^I".to_vec(), b'\t' => b"\t".to_vec(), - c if opts.show_nonprinting => parse_nonprinting_char(c), + c if opts.show_nonprinting => process_nonprinting(c), c => [c].to_vec(), }; line.extend(parsed) @@ -86,7 +86,7 @@ fn process_input(reader: impl Read, writer: &mut impl Write, opts: &Opts) -> Res Ok(()) } -fn parse_nonprinting_char(mut c: u8) -> Vec<u8> { +fn process_nonprinting(mut c: u8) -> Vec<u8> { let mut buf = Vec::new(); if c >= 128 { |