File tree 2 files changed +2
-52
lines changed
2 files changed +2
-52
lines changed Original file line number Diff line number Diff line change @@ -591,38 +591,13 @@ cfg_if! {
591
591
}
592
592
}
593
593
594
- impl af_alg_iv {
595
- fn as_slice( & self ) -> & [ u8 ] {
596
- unsafe {
597
- :: core:: slice:: from_raw_parts(
598
- self . iv. as_ptr( ) ,
599
- self . ivlen as usize
600
- )
601
- }
602
- }
603
- }
604
-
605
- impl PartialEq for af_alg_iv {
606
- fn eq( & self , other: & af_alg_iv) -> bool {
607
- * self . as_slice( ) == * other. as_slice( )
608
- }
609
- }
610
-
611
- impl Eq for af_alg_iv { }
612
-
613
594
impl :: fmt:: Debug for af_alg_iv {
614
595
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
615
596
f. debug_struct( "af_alg_iv" )
616
- . field( "iv " , & self . as_slice ( ) )
597
+ . field( "ivlen " , & self . ivlen )
617
598
. finish( )
618
599
}
619
600
}
620
-
621
- impl :: hash:: Hash for af_alg_iv {
622
- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
623
- self . as_slice( ) . hash( state) ;
624
- }
625
- }
626
601
}
627
602
}
628
603
Original file line number Diff line number Diff line change @@ -781,39 +781,14 @@ cfg_if! {
781
781
}
782
782
}
783
783
784
- impl af_alg_iv {
785
- fn as_slice( & self ) -> & [ u8 ] {
786
- unsafe {
787
- :: core:: slice:: from_raw_parts(
788
- self . iv. as_ptr( ) ,
789
- self . ivlen as usize
790
- )
791
- }
792
- }
793
- }
794
-
795
- impl PartialEq for af_alg_iv {
796
- fn eq( & self , other: & af_alg_iv) -> bool {
797
- * self . as_slice( ) == * other. as_slice( )
798
- }
799
- }
800
-
801
- impl Eq for af_alg_iv { }
802
-
803
784
impl :: fmt:: Debug for af_alg_iv {
804
785
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
805
786
f. debug_struct( "af_alg_iv" )
806
- . field( "iv " , & self . as_slice ( ) )
787
+ . field( "ivlen " , & self . ivlen )
807
788
. finish( )
808
789
}
809
790
}
810
791
811
- impl :: hash:: Hash for af_alg_iv {
812
- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
813
- self . as_slice( ) . hash( state) ;
814
- }
815
- }
816
-
817
792
impl PartialEq for mq_attr {
818
793
fn eq( & self , other: & mq_attr) -> bool {
819
794
self . mq_flags == other. mq_flags &&
You can’t perform that action at this time.
0 commit comments