File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -2474,8 +2474,8 @@ where
2474
2474
if let Some ( intrinsic) = custom_arch. intrinsic_from_id ( intrinsic) {
2475
2475
let inputs = intrinsic. outputs ( ) ;
2476
2476
let mut res = Vec :: with_capacity ( inputs. len ( ) ) ;
2477
- for input in inputs {
2478
- res. push ( input. into ( ) ) ;
2477
+ for input in inputs. iter ( ) {
2478
+ res. push ( input. as_ref ( ) . into ( ) ) ;
2479
2479
}
2480
2480
2481
2481
unsafe {
Original file line number Diff line number Diff line change @@ -576,14 +576,14 @@ pub trait BinaryViewExt: BinaryViewBase {
576
576
577
577
fn define_auto_data_var ( & self , dv : DataVariable ) {
578
578
unsafe {
579
- BNDefineDataVariable ( self . as_ref ( ) . handle , dv. address , & mut dv. t . into ( ) ) ;
579
+ BNDefineDataVariable ( self . as_ref ( ) . handle , dv. address , & mut dv. t . as_ref ( ) . into ( ) ) ;
580
580
}
581
581
}
582
582
583
583
/// You likely would also like to call [`Self::define_user_symbol`] to bind this data variable with a name
584
584
fn define_user_data_var ( & self , dv : DataVariable ) {
585
585
unsafe {
586
- BNDefineUserDataVariable ( self . as_ref ( ) . handle , dv. address , & mut dv. t . into ( ) ) ;
586
+ BNDefineUserDataVariable ( self . as_ref ( ) . handle , dv. address , & mut dv. t . as_ref ( ) . into ( ) ) ;
587
587
}
588
588
}
589
589
Original file line number Diff line number Diff line change @@ -260,15 +260,6 @@ impl From<BNOffsetWithConfidence> for Conf<i64> {
260
260
}
261
261
}
262
262
263
- impl From < Conf < Ref < Type > > > for BNTypeWithConfidence {
264
- fn from ( conf : Conf < Ref < Type > > ) -> Self {
265
- Self {
266
- type_ : conf. contents . handle ,
267
- confidence : conf. confidence ,
268
- }
269
- }
270
- }
271
-
272
263
impl From < Conf < & Type > > for BNTypeWithConfidence {
273
264
fn from ( conf : Conf < & Type > ) -> Self {
274
265
Self {
You can’t perform that action at this time.
0 commit comments