From 47fb9dbf43fb069635d421dabd16f7a721ec1d9a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 19 Oct 2024 21:05:08 -0400 Subject: Fix some rust warnings and remove mention of `binja-rs` --- rust/examples/dwarf/dwarf_import/src/lib.rs | 2 +- rust/examples/workflow/src/lib.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'rust/examples') diff --git a/rust/examples/dwarf/dwarf_import/src/lib.rs b/rust/examples/dwarf/dwarf_import/src/lib.rs index e5508b40..b04c04db 100644 --- a/rust/examples/dwarf/dwarf_import/src/lib.rs +++ b/rust/examples/dwarf/dwarf_import/src/lib.rs @@ -91,7 +91,7 @@ fn calculate_total_unit_bytes( { let mut iter = dwarf.units(); let mut total_size: usize = 0; - while let (Ok(Some(header))) = iter.next() + while let Ok(Some(header)) = iter.next() { total_size += header.length_including_self(); } diff --git a/rust/examples/workflow/src/lib.rs b/rust/examples/workflow/src/lib.rs index 0392b3bf..3e295c51 100644 --- a/rust/examples/workflow/src/lib.rs +++ b/rust/examples/workflow/src/lib.rs @@ -1,6 +1,5 @@ -use binaryninja::architecture::CoreArchitecture; use binaryninja::llil::{ - ExprInfo, LiftedNonSSA, Mutable, NonSSA, RegularNonSSA, VisitorAction, SSA, + ExprInfo, LiftedNonSSA, NonSSA, VisitorAction, }; use binaryninja::workflow::{Activity, AnalysisContext, Workflow}; use log::LevelFilter; @@ -32,7 +31,7 @@ fn example_activity(analysis_context: &AnalysisContext) { if let Some(llil_instr) = llil.instruction_at(instr) { llil_instr.visit_tree(&mut |expr, info| { match info { - ExprInfo::Const(op) => { + ExprInfo::Const(_op) => { // Replace all consts with 0x1337. log::info!( "Replacing llil expression @ 0x{:x} : {}", -- cgit v1.3.1