summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-10-11 23:38:14 -0700
committeriximeow <me@iximeow.net>2020-10-11 23:38:14 -0700
commit15423d14e596c5489b5ac4513a30e7c265a635b6 (patch)
tree4442259b692193d897fb64e4c671883d9fe31255 /src
parent16496210162fd81e40e18ba5b595722eaf29b7af (diff)
fix unused variable warnings (asserts that used these are now comments)
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs4
1 files 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<Lsb0, u8>) -> (Op
}
I9 => {
let r1 = word[6..13].load::<u8>();
- let z = word[13..20].load::<u8>();
+ let _z = word[13..20].load::<u8>();
// TODO: error on this properly? is this a #ud-like?
// assert_eq!(z, 0);
let r3 = word[20..27].load::<u8>();
@@ -2608,7 +2608,7 @@ fn read_i_operands(encoding: OperandEncodingI, word: &BitSlice<Lsb0, u8>) -> (Op
I30 => {
let p1 = word[6..13].load::<u8>();
let imm = word[14..19].load::<u8>();
- let z = word[20..27].load::<u8>();
+ let _z = word[20..27].load::<u8>();
// TODO: what happens when this field isn't actually zero?
// assert_eq!(z, 0);
let p2 = word[27..33].load::<u8>();