summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 92c8b3a..1d05eaf 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -103,6 +103,8 @@ fn process_nonprinting(mut c: u8) -> Vec<u8> {
#[cfg(test)]
mod test {
+ use crate::cli::Opt;
+
use super::*;
use std::process::{Command, Stdio};
@@ -132,10 +134,8 @@ mod test {
let cat_output = cat_child.wait_with_output().unwrap();
let cat_result = String::from_utf8(cat_output.stdout).unwrap();
- let opts = Opts {
- show_nonprinting: true,
- ..Default::default()
- };
+ let mut opts = Opts::default();
+ opts.set_opt(Opt::ShowNonprinting);
let mut writer = Vec::new();