From 34da4b9ceb5f6b2395dbf23ad6afdc5f473d29c2 Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 3 Jan 2020 19:07:42 -0800 Subject: match changes in arch to have Resulty decode, instead of Option --- test/armv7.rs | 4 ++-- test/armv8/a64.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/armv7.rs b/test/armv7.rs index 7b0c2b6..fbd71ee 100644 --- a/test/armv7.rs +++ b/test/armv7.rs @@ -403,10 +403,10 @@ pub fn bench_60000_instrs(b: &mut Bencher) { let mut result = Instruction::blank(); loop { match decoder.decode_into(&mut result, &mut iter) { - Some(result) => { + Ok(result) => { test::black_box(&result); }, - None => { + Err(_) => { break; } } diff --git a/test/armv8/a64.rs b/test/armv8/a64.rs index 4886fe1..406b867 100644 --- a/test/armv8/a64.rs +++ b/test/armv8/a64.rs @@ -2335,10 +2335,10 @@ pub fn bench_60000_instrs(b: &mut Bencher) { let mut result = Instruction::blank(); loop { match decoder.decode_into(&mut result, &mut iter) { - Some(result) => { + Ok(result) => { test::black_box(&result); }, - None => { + Err(_) => { break; } } -- cgit v1.1