@@ -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} ;
3535use std:: ops:: Deref ;
3636use 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