From 70ee2f14ca1de7e1393907c00f323325564cdddd Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Sat, 3 Dec 2022 21:52:50 -0600 Subject: refactor: rename parse_nonprinting_char to process_nonprinting --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ab3002d..8838b26 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 { +fn process_nonprinting(mut c: u8) -> Vec { let mut buf = Vec::new(); if c >= 128 { -- cgit v1.2.3-70-g09d2