@@ -312,7 +312,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawBsonRef<'a> {
312312 }
313313}
314314
315- impl < ' a > Serialize for RawBsonRef < ' a > {
315+ impl Serialize for RawBsonRef < ' _ > {
316316 fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
317317 where
318318 S : serde:: Serializer ,
@@ -371,13 +371,13 @@ impl<'a> TryFrom<RawBsonRef<'a>> for Bson {
371371 }
372372}
373373
374- impl < ' a > From < i32 > for RawBsonRef < ' a > {
374+ impl From < i32 > for RawBsonRef < ' _ > {
375375 fn from ( i : i32 ) -> Self {
376376 RawBsonRef :: Int32 ( i)
377377 }
378378}
379379
380- impl < ' a > From < i64 > for RawBsonRef < ' a > {
380+ impl From < i64 > for RawBsonRef < ' _ > {
381381 fn from ( i : i64 ) -> Self {
382382 RawBsonRef :: Int64 ( i)
383383 }
@@ -389,13 +389,13 @@ impl<'a> From<&'a str> for RawBsonRef<'a> {
389389 }
390390}
391391
392- impl < ' a > From < f64 > for RawBsonRef < ' a > {
392+ impl From < f64 > for RawBsonRef < ' _ > {
393393 fn from ( f : f64 ) -> Self {
394394 RawBsonRef :: Double ( f)
395395 }
396396}
397397
398- impl < ' a > From < bool > for RawBsonRef < ' a > {
398+ impl From < bool > for RawBsonRef < ' _ > {
399399 fn from ( b : bool ) -> Self {
400400 RawBsonRef :: Boolean ( b)
401401 }
@@ -425,25 +425,25 @@ impl<'a> From<&'a RawArrayBuf> for RawBsonRef<'a> {
425425 }
426426}
427427
428- impl < ' a > From < crate :: DateTime > for RawBsonRef < ' a > {
428+ impl From < crate :: DateTime > for RawBsonRef < ' _ > {
429429 fn from ( dt : crate :: DateTime ) -> Self {
430430 RawBsonRef :: DateTime ( dt)
431431 }
432432}
433433
434- impl < ' a > From < Timestamp > for RawBsonRef < ' a > {
434+ impl From < Timestamp > for RawBsonRef < ' _ > {
435435 fn from ( ts : Timestamp ) -> Self {
436436 RawBsonRef :: Timestamp ( ts)
437437 }
438438}
439439
440- impl < ' a > From < ObjectId > for RawBsonRef < ' a > {
440+ impl From < ObjectId > for RawBsonRef < ' _ > {
441441 fn from ( oid : ObjectId ) -> Self {
442442 RawBsonRef :: ObjectId ( oid)
443443 }
444444}
445445
446- impl < ' a > From < Decimal128 > for RawBsonRef < ' a > {
446+ impl From < Decimal128 > for RawBsonRef < ' _ > {
447447 fn from ( d : Decimal128 ) -> Self {
448448 RawBsonRef :: Decimal128 ( d)
449449 }
@@ -459,7 +459,7 @@ pub struct RawBinaryRef<'a> {
459459 pub bytes : & ' a [ u8 ] ,
460460}
461461
462- impl < ' a > RawBinaryRef < ' a > {
462+ impl RawBinaryRef < ' _ > {
463463 /// Copy the contents into a [`Binary`].
464464 pub fn to_binary ( & self ) -> Binary {
465465 Binary {
@@ -491,7 +491,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawBinaryRef<'a> {
491491 }
492492}
493493
494- impl < ' a > Serialize for RawBinaryRef < ' a > {
494+ impl Serialize for RawBinaryRef < ' _ > {
495495 fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
496496 where
497497 S : serde:: Serializer ,
@@ -569,7 +569,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a> {
569569 }
570570}
571571
572- impl < ' a > Serialize for RawRegexRef < ' a > {
572+ impl Serialize for RawRegexRef < ' _ > {
573573 fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
574574 where
575575 S : serde:: Serializer ,
@@ -606,7 +606,7 @@ pub struct RawJavaScriptCodeWithScopeRef<'a> {
606606 pub scope : & ' a RawDocument ,
607607}
608608
609- impl < ' a > RawJavaScriptCodeWithScopeRef < ' a > {
609+ impl RawJavaScriptCodeWithScopeRef < ' _ > {
610610 pub ( crate ) fn len ( self ) -> i32 {
611611 4 + 4 + self . code . len ( ) as i32 + 1 + self . scope . as_bytes ( ) . len ( ) as i32
612612 }
@@ -627,7 +627,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a> {
627627 }
628628}
629629
630- impl < ' a > Serialize for RawJavaScriptCodeWithScopeRef < ' a > {
630+ impl Serialize for RawJavaScriptCodeWithScopeRef < ' _ > {
631631 fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
632632 where
633633 S : serde:: Serializer ,
@@ -667,7 +667,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawDbPointerRef<'a> {
667667 }
668668}
669669
670- impl < ' a > Serialize for RawDbPointerRef < ' a > {
670+ impl Serialize for RawDbPointerRef < ' _ > {
671671 fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
672672 where
673673 S : serde:: Serializer ,
0 commit comments