From bebdead98a9fa6510e30dbde6cc694f52a346a1e Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 22 Jun 2024 15:18:31 -0700 Subject: NoColorsSink has a decent name now --- test/long_mode/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/long_mode/mod.rs') diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 96c7c79..6c666e1 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -79,14 +79,12 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str ); let mut text2 = String::new(); - let mut out = yaxpeax_arch::display::NoColorsSink { - out: &mut text2, - }; + let mut out = yaxpeax_arch::display::FmtSink::new(&mut text2); instr.write_to(&mut out).expect("printing succeeds"); assert!( text2 == text, - "display error through NoColorsSink for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n", + "display error through FmtSink for {}:\n decoded: {:?} under decoder {}\n displayed: {}\n expected: {}\n", hex, instr, decoder, -- cgit v1.1