From 2c7ac8726f30b4caa8a6a7c55a6c8aeba29916bb Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 10 Jul 2025 16:54:59 -0400 Subject: [Rust] Misc formatting --- plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs | 14 +++++++------- plugins/dwarf/dwarf_import/src/functions.rs | 2 +- plugins/warp/src/lib.rs | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs index 9f4f8c03..44826e39 100644 --- a/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs +++ b/plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs @@ -397,11 +397,11 @@ impl DebugInfoBuilder { } else { x } - }, + } None => { // Anonymous variable, generate name format!("debug_var_{}", offset) - }, + } }; let Some(function_index) = fn_idx else { @@ -476,7 +476,7 @@ impl DebugInfoBuilder { }); offset + guessed_sp_adjustment.unwrap_or(0) - }, + } }; if adjusted_offset > 0 { @@ -589,7 +589,7 @@ impl DebugInfoBuilder { let return_type = match function.return_type { Some(return_type_id) => { Conf::new(self.get_type(return_type_id).unwrap().ty.clone(), 128) - }, + } _ => Conf::new(Type::void(), 0), }; @@ -669,11 +669,11 @@ impl DebugInfoBuilder { match existing_functions.len().cmp(&1) { Ordering::Greater => { warn!("Multiple existing functions at address {address:08x}. One or more functions at this address may have the wrong platform information. Please report this binary."); - }, + } Ordering::Equal => { func.platform = Some(existing_functions.get(0).platform()) - }, - Ordering::Less => {}, + } + Ordering::Less => {} } } } diff --git a/plugins/dwarf/dwarf_import/src/functions.rs b/plugins/dwarf/dwarf_import/src/functions.rs index 49e16274..5f7b0e42 100644 --- a/plugins/dwarf/dwarf_import/src/functions.rs +++ b/plugins/dwarf/dwarf_import/src/functions.rs @@ -71,7 +71,7 @@ fn get_parameters( } else { result.push(None) } - }, + } constants::DW_TAG_unspecified_parameters => variable_arguments = true, _ => (), } diff --git a/plugins/warp/src/lib.rs b/plugins/warp/src/lib.rs index 2d512831..39f39e1c 100644 --- a/plugins/warp/src/lib.rs +++ b/plugins/warp/src/lib.rs @@ -3,7 +3,7 @@ use crate::convert::{bn_comment_to_comment, bn_var_to_location, from_bn_symbol, use binaryninja::architecture::{ Architecture, ImplicitRegisterExtend, Register as BNRegister, RegisterInfo, }; -use binaryninja::basic_block::{BasicBlock as BNBasicBlock}; +use binaryninja::basic_block::BasicBlock as BNBasicBlock; use binaryninja::binary_view::{BinaryView, BinaryViewExt}; use binaryninja::confidence::MAX_CONFIDENCE; use binaryninja::function::{Function as BNFunction, NativeBlock}; -- cgit v1.3.1