@@ -44,10 +44,10 @@ impl<'context, R: Reader, C: Config, Context> DecoderImpl<'context, R, C, Contex
44
44
}
45
45
}
46
46
47
- impl < ' context , R , C : Config , Context > Sealed for DecoderImpl < ' context , R , C , Context > { }
47
+ impl < R , C : Config , Context > Sealed for DecoderImpl < ' _ , R , C , Context > { }
48
48
49
- impl < ' context , ' de , R : BorrowReader < ' de > , C : Config , Context > BorrowDecoder < ' de >
50
- for DecoderImpl < ' context , R , C , Context >
49
+ impl < ' de , R : BorrowReader < ' de > , C : Config , Context > BorrowDecoder < ' de >
50
+ for DecoderImpl < ' _ , R , C , Context >
51
51
{
52
52
type BR = R ;
53
53
@@ -56,7 +56,7 @@ impl<'context, 'de, R: BorrowReader<'de>, C: Config, Context> BorrowDecoder<'de>
56
56
}
57
57
}
58
58
59
- impl < ' context , R : Reader , C : Config , Context > Decoder for DecoderImpl < ' context , R , C , Context > {
59
+ impl < R : Reader , C : Config , Context > Decoder for DecoderImpl < ' _ , R , C , Context > {
60
60
type R = R ;
61
61
62
62
type C = C ;
@@ -103,22 +103,22 @@ impl<'context, R: Reader, C: Config, Context> Decoder for DecoderImpl<'context,
103
103
}
104
104
}
105
105
106
- pub struct WithContext < ' a , D : ?Sized , C > {
106
+ pub struct WithContext < ' a , ' context , D : ?Sized , C > {
107
107
pub ( crate ) decoder : & ' a mut D ,
108
- pub ( crate ) context : & ' a mut C ,
108
+ pub ( crate ) context : & ' context mut C ,
109
109
}
110
110
111
- impl < ' a , C , D : Decoder + ?Sized > Sealed for WithContext < ' a , D , C > { }
111
+ impl < C , D : Decoder + ?Sized > Sealed for WithContext < ' _ , ' _ , D , C > { }
112
112
113
- impl < ' a , Context , D : Decoder + ?Sized > Decoder for WithContext < ' a , D , Context > {
113
+ impl < Context , D : Decoder + ?Sized > Decoder for WithContext < ' _ , ' _ , D , Context > {
114
114
type R = D :: R ;
115
115
116
116
type C = D :: C ;
117
117
118
118
type Context = Context ;
119
119
120
120
fn context ( & mut self ) -> & mut Self :: Context {
121
- & mut self . context
121
+ self . context
122
122
}
123
123
124
124
fn reader ( & mut self ) -> & mut Self :: R {
@@ -138,7 +138,7 @@ impl<'a, Context, D: Decoder + ?Sized> Decoder for WithContext<'a, D, Context> {
138
138
}
139
139
}
140
140
141
- impl < ' de , ' a , C , D : BorrowDecoder < ' de > > BorrowDecoder < ' de > for WithContext < ' a , D , C > {
141
+ impl < ' de , C , D : BorrowDecoder < ' de > > BorrowDecoder < ' de > for WithContext < ' _ , ' _ , D , C > {
142
142
type BR = D :: BR ;
143
143
fn borrow_reader ( & mut self ) -> & mut Self :: BR {
144
144
self . decoder . borrow_reader ( )
0 commit comments