summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files 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<u8> {
+fn process_nonprinting(mut c: u8) -> Vec<u8> {
let mut buf = Vec::new();
if c >= 128 {