@@ -240,7 +240,7 @@ macro_rules! impl_hash_stable_eq_via_eq {
240240 self == other
241241 }
242242 }
243- }
243+ } ;
244244}
245245
246246impl_stable_hash_via_hash ! ( i8 ) ;
@@ -325,12 +325,12 @@ impl<T1: HashStableEq, T2: HashStableEq> HashStableEq for (T1, T2) {
325325
326326impl < T1 : HashStableEq , T2 : HashStableEq , T3 : HashStableEq > HashStableEq for ( T1 , T2 , T3 ) {
327327 fn hash_stable_eq ( & self , other : & Self ) -> bool {
328- self . 0 . hash_stable_eq ( & other. 0 ) && self . 1 . hash_stable_eq ( & other. 1 )
328+ self . 0 . hash_stable_eq ( & other. 0 )
329+ && self . 1 . hash_stable_eq ( & other. 1 )
329330 && self . 2 . hash_stable_eq ( & other. 2 )
330331 }
331332}
332333
333-
334334impl < T1 : HashStable < CTX > , CTX > HashStable < CTX > for ( T1 , ) {
335335 fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
336336 let ( ref _0, ) = * self ;
@@ -396,7 +396,6 @@ impl<T: HashStableEq, const N: usize> HashStableEq for [T; N] {
396396 }
397397}
398398
399-
400399impl < T : HashStable < CTX > , CTX > HashStable < CTX > for [ T ] {
401400 default fn hash_stable ( & self , ctx : & mut CTX , hasher : & mut StableHasher ) {
402401 self . len ( ) . hash_stable ( ctx, hasher) ;
@@ -436,16 +435,16 @@ impl<T: HashStableEq> HashStableEq for Vec<T> {
436435 }
437436}
438437
439- impl < K : HashStableEq + Eq + Hash , V : HashStableEq , R : BuildHasher > HashStableEq for indexmap:: IndexMap < K , V , R > {
438+ impl < K : HashStableEq + Eq + Hash , V : HashStableEq , R : BuildHasher > HashStableEq
439+ for indexmap:: IndexMap < K , V , R >
440+ {
440441 fn hash_stable_eq ( & self , other : & Self ) -> bool {
441442 if self . len ( ) != other. len ( ) {
442443 return false ;
443444 }
444445 // Equal maps will have equal iteration orders
445446 // FIXME -is that actually right?
446- self . iter ( ) . zip ( other. iter ( ) ) . all ( |( first, second) | {
447- first. hash_stable_eq ( & second)
448- } )
447+ self . iter ( ) . zip ( other. iter ( ) ) . all ( |( first, second) | first. hash_stable_eq ( & second) )
449448 }
450449}
451450
@@ -494,7 +493,10 @@ where
494493 }
495494}
496495
497- impl < A : smallvec:: Array > HashStableEq for SmallVec < A > where <A as smallvec:: Array >:: Item : HashStableEq {
496+ impl < A : smallvec:: Array > HashStableEq for SmallVec < A >
497+ where
498+ <A as smallvec:: Array >:: Item : HashStableEq ,
499+ {
498500 fn hash_stable_eq ( & self , other : & Self ) -> bool {
499501 ( & self [ ..] ) . hash_stable_eq ( other)
500502 }
@@ -587,7 +589,7 @@ impl<T: HashStableEq> HashStableEq for Option<T> {
587589 match ( self , other) {
588590 ( Some ( first) , Some ( second) ) => first. hash_stable_eq ( second) ,
589591 ( None , None ) => true ,
590- _ => false
592+ _ => false ,
591593 }
592594 }
593595}
@@ -597,7 +599,7 @@ impl<T: HashStableEq, E: HashStableEq> HashStableEq for Result<T, E> {
597599 match ( self , other) {
598600 ( Ok ( first) , Ok ( second) ) => first. hash_stable_eq ( second) ,
599601 ( Err ( first) , Err ( second) ) => first. hash_stable_eq ( second) ,
600- _ => false
602+ _ => false ,
601603 }
602604 }
603605}
0 commit comments