@@ -79,7 +79,7 @@ macro_rules! rpc_encode_decode {
7979 }
8080 }
8181
82- impl <S , $( $( $T: for <' s> DecodeMut <' a, ' s, S >) ,+) ?> DecodeMut <' a, ' _, S >
82+ impl <' a , S , $( $( $T: for <' s> DecodeMut <' a, ' s, S >) ,+) ?> DecodeMut <' a, ' _, S >
8383 for $name $( <$( $T) ,+>) ?
8484 {
8585 fn decode( r: & mut Reader <' a>, s: & mut S ) -> Self {
@@ -176,7 +176,7 @@ impl<S, A: Encode<S>, B: Encode<S>> Encode<S> for (A, B) {
176176 }
177177}
178178
179- impl < S , A : for < ' s > DecodeMut < ' a , ' s , S > , B : for < ' s > DecodeMut < ' a , ' s , S > > DecodeMut < ' a , ' _ , S >
179+ impl < ' a , S , A : for < ' s > DecodeMut < ' a , ' s , S > , B : for < ' s > DecodeMut < ' a , ' s , S > > DecodeMut < ' a , ' _ , S >
180180 for ( A , B )
181181{
182182 fn decode ( r : & mut Reader < ' a > , s : & mut S ) -> Self {
@@ -213,7 +213,7 @@ impl<S> Encode<S> for &[u8] {
213213 }
214214}
215215
216- impl < S > DecodeMut < ' a , ' _ , S > for & ' a [ u8 ] {
216+ impl < ' a , S > DecodeMut < ' a , ' _ , S > for & ' a [ u8 ] {
217217 fn decode ( r : & mut Reader < ' a > , s : & mut S ) -> Self {
218218 let len = usize:: decode ( r, s) ;
219219 let xs = & r[ ..len] ;
@@ -228,7 +228,7 @@ impl<S> Encode<S> for &str {
228228 }
229229}
230230
231- impl < S > DecodeMut < ' a , ' _ , S > for & ' a str {
231+ impl < ' a , S > DecodeMut < ' a , ' _ , S > for & ' a str {
232232 fn decode ( r : & mut Reader < ' a > , s : & mut S ) -> Self {
233233 str:: from_utf8 ( <& [ u8 ] >:: decode ( r, s) ) . unwrap ( )
234234 }
0 commit comments