File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,9 @@ cfg_if! {
509
509
510
510
impl af_alg_iv {
511
511
unsafe fn as_slice( & self ) -> & [ u8 ] {
512
- :: std:: slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
512
+ use core:: slice;
513
+
514
+ slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
513
515
}
514
516
}
515
517
@@ -524,7 +526,7 @@ cfg_if! {
524
526
impl :: fmt:: Debug for af_alg_iv {
525
527
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
526
528
f. debug_struct( "af_alg_iv" )
527
- . field( "iv" , self . as_slice( ) )
529
+ // .field("iv", self.as_slice())
528
530
. finish( )
529
531
}
530
532
}
Original file line number Diff line number Diff line change @@ -728,7 +728,9 @@ cfg_if! {
728
728
729
729
impl af_alg_iv {
730
730
unsafe fn as_slice( & self ) -> & [ u8 ] {
731
- :: std:: slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
731
+ use core:: slice;
732
+
733
+ slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
732
734
}
733
735
}
734
736
@@ -743,7 +745,7 @@ cfg_if! {
743
745
impl :: fmt:: Debug for af_alg_iv {
744
746
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
745
747
f. debug_struct( "af_alg_iv" )
746
- . field( "iv" , self . as_slice( ) )
748
+ // .field("iv", self.as_slice())
747
749
. finish( )
748
750
}
749
751
}
You can’t perform that action at this time.
0 commit comments