File tree 1 file changed +3
-3
lines changed
compiler/rustc_serialize/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ impl<D: Decoder, const N: usize> Decodable<D> for [u8; N] {
325
325
}
326
326
}
327
327
328
- impl < ' a , S : Encoder , T : Encodable < S > > Encodable < S > for Cow < ' a , [ T ] >
328
+ impl < S : Encoder , T : Encodable < S > > Encodable < S > for Cow < ' _ , [ T ] >
329
329
where
330
330
[ T ] : ToOwned < Owned = Vec < T > > ,
331
331
{
@@ -345,14 +345,14 @@ where
345
345
}
346
346
}
347
347
348
- impl < ' a , S : Encoder > Encodable < S > for Cow < ' a , str > {
348
+ impl < S : Encoder > Encodable < S > for Cow < ' _ , str > {
349
349
fn encode ( & self , s : & mut S ) {
350
350
let val: & str = self ;
351
351
val. encode ( s)
352
352
}
353
353
}
354
354
355
- impl < ' a , D : Decoder > Decodable < D > for Cow < ' a , str > {
355
+ impl < D : Decoder > Decodable < D > for Cow < ' _ , str > {
356
356
fn decode ( d : & mut D ) -> Cow < ' static , str > {
357
357
let v: String = Decodable :: decode ( d) ;
358
358
Cow :: Owned ( v)
You can’t perform that action at this time.
0 commit comments