diff options
Diffstat (limited to 'test/protected_mode/display.rs')
-rw-r--r-- | test/protected_mode/display.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/protected_mode/display.rs b/test/protected_mode/display.rs index 8426a0a..694c38c 100644 --- a/test/protected_mode/display.rs +++ b/test/protected_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!( |