summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-06-18 12:34:44 -0400
committerAlexander Taylor <alex@vector35.com>2025-06-25 18:36:48 -0400
commit4890b718c8d04dd5ebbc71c8dbb80f1f7edf133b (patch)
tree1c5af61dc4b8b6e90687f56d0f597c87bcd0816c /rust
parent2bce607fb7a861518346c9c7f42fab51c4b2b2ba (diff)
Fix reported `cargo fmt` errors from Rust CI.
Diffstat (limited to 'rust')
-rw-r--r--rust/src/architecture.rs16
1 files changed, 4 insertions, 12 deletions
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) };