Skip to content

Commit c2b5b4c

Browse files
committed
Fix reported cargo fmt errors from Rust CI.
1 parent 0672df7 commit c2b5b4c

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

plugins/dwarf/dwarfdump/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ use binaryninja::{
2020
};
2121
use dwarfreader::is_valid;
2222

23+
use binaryninja::binary_view::StringType;
2324
use gimli::{
2425
AttributeValue::{Encoding, Flag, UnitRef},
2526
// BigEndian,
@@ -32,7 +33,6 @@ use gimli::{
3233
Unit,
3334
UnitSectionOffset,
3435
};
35-
use binaryninja::binary_view::StringType;
3636

3737
static PADDING: [&str; 23] = [
3838
"",

rust/src/architecture.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ use crate::{
2323
calling_convention::CoreCallingConvention,
2424
data_buffer::DataBuffer,
2525
disassembly::InstructionTextToken,
26+
function::Function,
2627
platform::Platform,
2728
rc::*,
2829
relocation::CoreRelocationHandler,
2930
string::IntoCStr,
3031
string::*,
3132
types::{NameAndType, Type},
3233
Endianness,
33-
function::Function,
3434
};
3535
use std::ops::Deref;
3636
use std::{
@@ -477,10 +477,7 @@ pub trait Architecture: 'static + Sized + AsRef<CoreArchitecture> {
477477
context: *mut BNBasicBlockAnalysisContext,
478478
) {
479479
unsafe {
480-
BNArchitectureDefaultAnalyzeBasicBlocks(
481-
function.handle,
482-
context,
483-
);
480+
BNArchitectureDefaultAnalyzeBasicBlocks(function.handle, context);
484481
};
485482
}
486483

@@ -1553,11 +1550,7 @@ impl Architecture for CoreArchitecture {
15531550
context: *mut BNBasicBlockAnalysisContext,
15541551
) {
15551552
unsafe {
1556-
BNArchitectureAnalyzeBasicBlocks(
1557-
self.handle,
1558-
function.handle,
1559-
context,
1560-
);
1553+
BNArchitectureAnalyzeBasicBlocks(self.handle, function.handle, context);
15611554
};
15621555
}
15631556

@@ -2269,8 +2262,7 @@ where
22692262
ctxt: *mut c_void,
22702263
function: *mut BNFunction,
22712264
context: *mut BNBasicBlockAnalysisContext,
2272-
)
2273-
where
2265+
) where
22742266
A: 'static + Architecture<Handle = CustomArchitectureHandle<A>> + Send + Sync,
22752267
{
22762268
let custom_arch = unsafe { &*(ctxt as *mut A) };

0 commit comments

Comments
 (0)