From f9cb2bc872f05a2f49352a4ed2c5c14dcf54977d Mon Sep 17 00:00:00 2001 From: sharkdp Date: Mon, 9 Mar 2020 20:23:46 +0100 Subject: [PATCH] Fix tests --- examples/simple.rs | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/simple.rs b/examples/simple.rs index fbec214..7470d87 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -16,5 +16,5 @@ fn main() { let border_style = BorderStyle::Unicode; let mut printer = Printer::new(&mut handle, show_color, border_style, use_squeezing); - printer.print_all(&input[..], None).unwrap(); + printer.print_all(&input[..]).unwrap(); } diff --git a/src/lib.rs b/src/lib.rs index 74d17ff..08fd4d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -448,7 +448,7 @@ mod tests { let mut output = vec![]; let mut printer = Printer::new(&mut output, false, BorderStyle::Unicode, true); - printer.print_all(input, None).unwrap(); + printer.print_all(input).unwrap(); let actual_string: &str = str::from_utf8(&output).unwrap(); assert_eq!(actual_string, expected_string) @@ -493,7 +493,7 @@ mod tests { Printer::new(&mut output, false, BorderStyle::Unicode, true); printer.display_offset(0xdeadbeef); - printer.print_all(input, None).unwrap(); + printer.print_all(input).unwrap(); let actual_string: &str = str::from_utf8(&output).unwrap(); assert_eq!(actual_string, expected_string)