summaryrefslogtreecommitdiff
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
parentc19bd82b7dfe4dd695048dda81707de4da651313 (diff)
Fix misc rust warnings
-rw-r--r--arch/msp430/src/lift.rs3
-rw-r--r--arch/riscv/disasm/src/lib.rs2
-rw-r--r--rust/src/typelibrary.rs2
3 files changed, 2 insertions, 5 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()));
diff --git a/rust/src/typelibrary.rs b/rust/src/typelibrary.rs
index a0992e18..22ac9f9e 100644
--- a/rust/src/typelibrary.rs
+++ b/rust/src/typelibrary.rs
@@ -298,7 +298,7 @@ impl TypeLibrary {
///
/// Use this api with extreme caution.
///
- /// </div/
+ /// </div>
pub fn add_type_source<S: BnStrCompatible>(&self, name: &QualifiedName, source: S) {
let source = source.into_bytes_with_nul();
unsafe {