summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-08-29 19:13:06 -0400
committerMason Reed <mason@vector35.com>2024-08-29 19:13:06 -0400
commit564f2a065fae5e08990c660926b147bca7c29226 (patch)
tree54c583c99c57592484c2310e5993f3784aa387d4 /arch
parentc19bd82b7dfe4dd695048dda81707de4da651313 (diff)
Fix misc rust warnings
Diffstat (limited to 'arch')
-rw-r--r--arch/msp430/src/lift.rs3
-rw-r--r--arch/riscv/disasm/src/lib.rs2
2 files changed, 1 insertions, 4 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs
index 880f201d..9bf78a70 100644
--- a/arch/msp430/src/lift.rs
+++ b/arch/msp430/src/lift.rs
@@ -74,9 +74,6 @@ macro_rules! one_operand {
.append()
}
Operand::Constant(val) => $il.store(2, $il.const_int(2, *val as u64), $op).append(),
- _ => {
- unreachable!()
- }
};
};
}
diff --git a/arch/riscv/disasm/src/lib.rs b/arch/riscv/disasm/src/lib.rs
index 0703cd56..ad612e7a 100644
--- a/arch/riscv/disasm/src/lib.rs
+++ b/arch/riscv/disasm/src/lib.rs
@@ -1868,7 +1868,7 @@ impl<D: RiscVDisassembler> Instr<D> {
ops.push(Operand::R(j.rd()));
ops.push(Operand::I(j.imm()));
}
- Op::SfenceVm(ref r) => {}
+ Op::SfenceVm(ref _r) => {}
Op::SfenceVma(ref r) => {
ops.push(Operand::R(r.rs1()));
ops.push(Operand::R(r.rs2()));