diff options
Diffstat (limited to 'test/long_mode/display.rs')
-rw-r--r-- | test/long_mode/display.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/long_mode/display.rs b/test/long_mode/display.rs index 4ef3f74..fc59427 100644 --- a/test/long_mode/display.rs +++ b/test/long_mode/display.rs @@ -12,7 +12,8 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str for b in data { write!(hex, "{:02x}", b).unwrap(); } - match decoder.decode(data.into_iter().map(|x| *x)) { + let mut reader = yaxpeax_arch::U8Reader::new(data); + match decoder.decode(&mut reader) { Ok(instr) => { let text = format!("{}", instr.display_with(DisplayStyle::C)); assert!( |