diff options
author | iximeow <me@iximeow.net> | 2020-10-11 23:38:14 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-10-11 23:38:14 -0700 |
commit | 15423d14e596c5489b5ac4513a30e7c265a635b6 (patch) | |
tree | 4442259b692193d897fb64e4c671883d9fe31255 /src | |
parent | 16496210162fd81e40e18ba5b595722eaf29b7af (diff) |
fix unused variable warnings (asserts that used these are now comments)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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>(); |