From 564f2a065fae5e08990c660926b147bca7c29226 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 29 Aug 2024 19:13:06 -0400 Subject: Fix misc rust warnings --- arch/msp430/src/lift.rs | 3 --- arch/riscv/disasm/src/lib.rs | 2 +- rust/src/typelibrary.rs | 2 +- 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 Instr { 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. /// - /// pub fn add_type_source(&self, name: &QualifiedName, source: S) { let source = source.into_bytes_with_nul(); unsafe { -- cgit v1.3.1