File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -508,14 +508,14 @@ cfg_if! {
508
508
}
509
509
510
510
impl af_alg_iv {
511
- unsafe fn iv ( & self ) -> & [ u8 ] {
511
+ unsafe fn as_slice ( & self ) -> & [ u8 ] {
512
512
:: std:: slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
513
513
}
514
514
}
515
515
516
516
impl PartialEq for af_alg_iv {
517
517
fn eq( & self , other: & af_alg_iv) -> bool {
518
- * self . iv ( ) == * other. iv ( )
518
+ * self . as_slice ( ) == * other. as_slice ( )
519
519
}
520
520
}
521
521
@@ -524,14 +524,14 @@ cfg_if! {
524
524
impl :: fmt:: Debug for af_alg_iv {
525
525
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
526
526
f. debug_struct( "af_alg_iv" )
527
- . field( "iv" , self . iv ( ) )
527
+ . field( "iv" , self . as_slice ( ) )
528
528
. finish( )
529
529
}
530
530
}
531
531
532
532
impl :: hash:: Hash for af_alg_iv {
533
533
fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
534
- self . iv ( ) . hash( state) ;
534
+ self . as_slice ( ) . hash( state) ;
535
535
}
536
536
}
537
537
}
Original file line number Diff line number Diff line change @@ -727,14 +727,14 @@ cfg_if! {
727
727
}
728
728
729
729
impl af_alg_iv {
730
- unsafe fn iv ( & self ) -> & [ u8 ] {
730
+ unsafe fn as_slice ( & self ) -> & [ u8 ] {
731
731
:: std:: slice:: from_raw_parts( self . iv. as_ptr( ) , self . ivlen as usize )
732
732
}
733
733
}
734
734
735
735
impl PartialEq for af_alg_iv {
736
736
fn eq( & self , other: & af_alg_iv) -> bool {
737
- * self . iv ( ) == * other. iv ( )
737
+ * self . as_slice ( ) == * other. as_slice ( )
738
738
}
739
739
}
740
740
@@ -743,14 +743,14 @@ cfg_if! {
743
743
impl :: fmt:: Debug for af_alg_iv {
744
744
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
745
745
f. debug_struct( "af_alg_iv" )
746
- . field( "iv" , self . iv ( ) )
746
+ . field( "iv" , self . as_slice ( ) )
747
747
. finish( )
748
748
}
749
749
}
750
750
751
751
impl :: hash:: Hash for af_alg_iv {
752
752
fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
753
- self . iv ( ) . hash( state) ;
753
+ self . as_slice ( ) . hash( state) ;
754
754
}
755
755
}
756
756
}
You can’t perform that action at this time.
0 commit comments