From 15423d14e596c5489b5ac4513a30e7c265a635b6 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 11 Oct 2020 23:38:14 -0700 Subject: fix unused variable warnings (asserts that used these are now comments) --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5c2fbfd..2df131e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2353,7 +2353,7 @@ fn read_i_operands(encoding: OperandEncodingI, word: &BitSlice) -> (Op } I9 => { let r1 = word[6..13].load::(); - let z = word[13..20].load::(); + let _z = word[13..20].load::(); // TODO: error on this properly? is this a #ud-like? // assert_eq!(z, 0); let r3 = word[20..27].load::(); @@ -2608,7 +2608,7 @@ fn read_i_operands(encoding: OperandEncodingI, word: &BitSlice) -> (Op I30 => { let p1 = word[6..13].load::(); let imm = word[14..19].load::(); - let z = word[20..27].load::(); + let _z = word[20..27].load::(); // TODO: what happens when this field isn't actually zero? // assert_eq!(z, 0); let p2 = word[27..33].load::(); -- cgit v1.1