diff options
| author | Alexander Taylor <alex@vector35.com> | 2025-06-18 12:34:44 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2025-06-25 18:36:48 -0400 |
| commit | 4890b718c8d04dd5ebbc71c8dbb80f1f7edf133b (patch) | |
| tree | 1c5af61dc4b8b6e90687f56d0f597c87bcd0816c | |
| parent | 2bce607fb7a861518346c9c7f42fab51c4b2b2ba (diff) | |
Fix reported `cargo fmt` errors from Rust CI.
| -rw-r--r-- | plugins/dwarf/dwarfdump/src/lib.rs | 2 | ||||
| -rw-r--r-- | rust/src/architecture.rs | 16 |
2 files changed, 5 insertions, 13 deletions
diff --git a/plugins/dwarf/dwarfdump/src/lib.rs b/plugins/dwarf/dwarfdump/src/lib.rs index e6d17b79..1d0343f1 100644 --- a/plugins/dwarf/dwarfdump/src/lib.rs +++ b/plugins/dwarf/dwarfdump/src/lib.rs @@ -20,6 +20,7 @@ use binaryninja::{ }; use dwarfreader::is_valid; +use binaryninja::binary_view::StringType; use gimli::{ AttributeValue::{Encoding, Flag, UnitRef}, // BigEndian, @@ -32,7 +33,6 @@ use gimli::{ Unit, UnitSectionOffset, }; -use binaryninja::binary_view::StringType; static PADDING: [&str; 23] = [ "", diff --git a/rust/src/architecture.rs b/rust/src/architecture.rs index c716bb95..054c078b 100644 --- a/rust/src/architecture.rs +++ b/rust/src/architecture.rs @@ -23,6 +23,7 @@ use crate::{ calling_convention::CoreCallingConvention, data_buffer::DataBuffer, disassembly::InstructionTextToken, + function::Function, platform::Platform, rc::*, relocation::CoreRelocationHandler, @@ -30,7 +31,6 @@ use crate::{ string::*, types::{NameAndType, Type}, Endianness, - function::Function, }; use std::ops::Deref; use std::{ @@ -477,10 +477,7 @@ pub trait Architecture: 'static + Sized + AsRef<CoreArchitecture> { context: *mut BNBasicBlockAnalysisContext, ) { unsafe { - BNArchitectureDefaultAnalyzeBasicBlocks( - function.handle, - context, - ); + BNArchitectureDefaultAnalyzeBasicBlocks(function.handle, context); }; } @@ -1553,11 +1550,7 @@ impl Architecture for CoreArchitecture { context: *mut BNBasicBlockAnalysisContext, ) { unsafe { - BNArchitectureAnalyzeBasicBlocks( - self.handle, - function.handle, - context, - ); + BNArchitectureAnalyzeBasicBlocks(self.handle, function.handle, context); }; } @@ -2269,8 +2262,7 @@ where ctxt: *mut c_void, function: *mut BNFunction, context: *mut BNBasicBlockAnalysisContext, - ) - where + ) where A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync, { let custom_arch = unsafe { &*(ctxt as *mut A) }; |
