summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-10 16:54:59 -0400
committerMason Reed <mason@vector35.com>2025-07-15 12:34:43 -0400
commit2c7ac8726f30b4caa8a6a7c55a6c8aeba29916bb (patch)
tree40b7ef6ca1c305de5a734bec9ac07ef6e0d267de /plugins
parent414bc8049d51828c0870b68b72ddd9e50bc1e700 (diff)
[Rust] Misc formatting
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs14
-rw-r--r--plugins/dwarf/dwarf_import/src/functions.rs2
-rw-r--r--plugins/warp/src/lib.rs2
3 files changed, 9 insertions, 9 deletions
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<R: ReaderType>(
} 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};