diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); |