@@ -312,7 +312,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawBsonRef<'a> {
312
312
}
313
313
}
314
314
315
- impl < ' a > Serialize for RawBsonRef < ' a > {
315
+ impl Serialize for RawBsonRef < ' _ > {
316
316
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
317
317
where
318
318
S : serde:: Serializer ,
@@ -371,13 +371,13 @@ impl<'a> TryFrom<RawBsonRef<'a>> for Bson {
371
371
}
372
372
}
373
373
374
- impl < ' a > From < i32 > for RawBsonRef < ' a > {
374
+ impl From < i32 > for RawBsonRef < ' _ > {
375
375
fn from ( i : i32 ) -> Self {
376
376
RawBsonRef :: Int32 ( i)
377
377
}
378
378
}
379
379
380
- impl < ' a > From < i64 > for RawBsonRef < ' a > {
380
+ impl From < i64 > for RawBsonRef < ' _ > {
381
381
fn from ( i : i64 ) -> Self {
382
382
RawBsonRef :: Int64 ( i)
383
383
}
@@ -389,13 +389,13 @@ impl<'a> From<&'a str> for RawBsonRef<'a> {
389
389
}
390
390
}
391
391
392
- impl < ' a > From < f64 > for RawBsonRef < ' a > {
392
+ impl From < f64 > for RawBsonRef < ' _ > {
393
393
fn from ( f : f64 ) -> Self {
394
394
RawBsonRef :: Double ( f)
395
395
}
396
396
}
397
397
398
- impl < ' a > From < bool > for RawBsonRef < ' a > {
398
+ impl From < bool > for RawBsonRef < ' _ > {
399
399
fn from ( b : bool ) -> Self {
400
400
RawBsonRef :: Boolean ( b)
401
401
}
@@ -425,25 +425,25 @@ impl<'a> From<&'a RawArrayBuf> for RawBsonRef<'a> {
425
425
}
426
426
}
427
427
428
- impl < ' a > From < crate :: DateTime > for RawBsonRef < ' a > {
428
+ impl From < crate :: DateTime > for RawBsonRef < ' _ > {
429
429
fn from ( dt : crate :: DateTime ) -> Self {
430
430
RawBsonRef :: DateTime ( dt)
431
431
}
432
432
}
433
433
434
- impl < ' a > From < Timestamp > for RawBsonRef < ' a > {
434
+ impl From < Timestamp > for RawBsonRef < ' _ > {
435
435
fn from ( ts : Timestamp ) -> Self {
436
436
RawBsonRef :: Timestamp ( ts)
437
437
}
438
438
}
439
439
440
- impl < ' a > From < ObjectId > for RawBsonRef < ' a > {
440
+ impl From < ObjectId > for RawBsonRef < ' _ > {
441
441
fn from ( oid : ObjectId ) -> Self {
442
442
RawBsonRef :: ObjectId ( oid)
443
443
}
444
444
}
445
445
446
- impl < ' a > From < Decimal128 > for RawBsonRef < ' a > {
446
+ impl From < Decimal128 > for RawBsonRef < ' _ > {
447
447
fn from ( d : Decimal128 ) -> Self {
448
448
RawBsonRef :: Decimal128 ( d)
449
449
}
@@ -459,7 +459,7 @@ pub struct RawBinaryRef<'a> {
459
459
pub bytes : & ' a [ u8 ] ,
460
460
}
461
461
462
- impl < ' a > RawBinaryRef < ' a > {
462
+ impl RawBinaryRef < ' _ > {
463
463
/// Copy the contents into a [`Binary`].
464
464
pub fn to_binary ( & self ) -> Binary {
465
465
Binary {
@@ -491,7 +491,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawBinaryRef<'a> {
491
491
}
492
492
}
493
493
494
- impl < ' a > Serialize for RawBinaryRef < ' a > {
494
+ impl Serialize for RawBinaryRef < ' _ > {
495
495
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
496
496
where
497
497
S : serde:: Serializer ,
@@ -569,7 +569,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawRegexRef<'a> {
569
569
}
570
570
}
571
571
572
- impl < ' a > Serialize for RawRegexRef < ' a > {
572
+ impl Serialize for RawRegexRef < ' _ > {
573
573
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
574
574
where
575
575
S : serde:: Serializer ,
@@ -606,7 +606,7 @@ pub struct RawJavaScriptCodeWithScopeRef<'a> {
606
606
pub scope : & ' a RawDocument ,
607
607
}
608
608
609
- impl < ' a > RawJavaScriptCodeWithScopeRef < ' a > {
609
+ impl RawJavaScriptCodeWithScopeRef < ' _ > {
610
610
pub ( crate ) fn len ( self ) -> i32 {
611
611
4 + 4 + self . code . len ( ) as i32 + 1 + self . scope . as_bytes ( ) . len ( ) as i32
612
612
}
@@ -627,7 +627,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a> {
627
627
}
628
628
}
629
629
630
- impl < ' a > Serialize for RawJavaScriptCodeWithScopeRef < ' a > {
630
+ impl Serialize for RawJavaScriptCodeWithScopeRef < ' _ > {
631
631
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
632
632
where
633
633
S : serde:: Serializer ,
@@ -667,7 +667,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for RawDbPointerRef<'a> {
667
667
}
668
668
}
669
669
670
- impl < ' a > Serialize for RawDbPointerRef < ' a > {
670
+ impl Serialize for RawDbPointerRef < ' _ > {
671
671
fn serialize < S > ( & self , serializer : S ) -> std:: result:: Result < S :: Ok , S :: Error >
672
672
where
673
673
S : serde:: Serializer ,
0 commit comments