diff options
author | iximeow <me@iximeow.net> | 2024-06-22 15:18:31 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-22 15:18:31 -0700 |
commit | bebdead98a9fa6510e30dbde6cc694f52a346a1e (patch) | |
tree | 5063632fcd3571854133dac0406d856ba8a661a6 /test/long_mode | |
parent | 347042c45ced56b37a665a2c4b042b7f7aae8e03 (diff) |
NoColorsSink has a decent name now
Diffstat (limited to 'test/long_mode')
-rw-r--r-- | test/long_mode/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
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, |