File tree 5 files changed +14
-14
lines changed
5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl IntoDsn for () {
27
27
}
28
28
}
29
29
30
- impl < ' a > IntoDsn for & ' a str {
30
+ impl IntoDsn for & ' _ str {
31
31
fn into_dsn ( self ) -> Result < Option < Dsn > , ParseDsnError > {
32
32
if self . is_empty ( ) {
33
33
Ok ( None )
@@ -37,14 +37,14 @@ impl<'a> IntoDsn for &'a str {
37
37
}
38
38
}
39
39
40
- impl < ' a > IntoDsn for Cow < ' a , str > {
40
+ impl IntoDsn for Cow < ' _ , str > {
41
41
fn into_dsn ( self ) -> Result < Option < Dsn > , ParseDsnError > {
42
42
let x: & str = & self ;
43
43
x. into_dsn ( )
44
44
}
45
45
}
46
46
47
- impl < ' a > IntoDsn for & ' a OsStr {
47
+ impl IntoDsn for & ' _ OsStr {
48
48
fn into_dsn ( self ) -> Result < Option < Dsn > , ParseDsnError > {
49
49
self . to_string_lossy ( ) . into_dsn ( )
50
50
}
@@ -62,7 +62,7 @@ impl IntoDsn for String {
62
62
}
63
63
}
64
64
65
- impl < ' a > IntoDsn for & ' a Dsn {
65
+ impl IntoDsn for & ' _ Dsn {
66
66
fn into_dsn ( self ) -> Result < Option < Dsn > , ParseDsnError > {
67
67
Ok ( Some ( self . clone ( ) ) )
68
68
}
Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ impl Transaction {
751
751
/// A smart pointer to a span's [`data` field](protocol::Span::data).
752
752
pub struct Data < ' a > ( MutexGuard < ' a , protocol:: Span > ) ;
753
753
754
- impl < ' a > Data < ' a > {
754
+ impl Data < ' _ > {
755
755
/// Set some extra information to be sent with this Span.
756
756
pub fn set_data ( & mut self , key : String , value : protocol:: Value ) {
757
757
self . 0 . data . insert ( key, value) ;
@@ -763,15 +763,15 @@ impl<'a> Data<'a> {
763
763
}
764
764
}
765
765
766
- impl < ' a > Deref for Data < ' a > {
766
+ impl Deref for Data < ' _ > {
767
767
type Target = BTreeMap < String , protocol:: Value > ;
768
768
769
769
fn deref ( & self ) -> & Self :: Target {
770
770
& self . 0 . data
771
771
}
772
772
}
773
773
774
- impl < ' a > DerefMut for Data < ' a > {
774
+ impl DerefMut for Data < ' _ > {
775
775
fn deref_mut ( & mut self ) -> & mut Self :: Target {
776
776
& mut self . 0 . data
777
777
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ macro_rules! impl_into {
22
22
}
23
23
} ;
24
24
}
25
- impl < ' a > Serializer for MapSerializer < ' a > {
25
+ impl Serializer for MapSerializer < ' _ > {
26
26
fn emit_arguments ( & mut self , key : Key , val : & fmt:: Arguments ) -> slog:: Result {
27
27
self . 0 . insert ( key. into ( ) , val. to_string ( ) . into ( ) ) ;
28
28
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -1643,7 +1643,7 @@ pub struct Event<'a> {
1643
1643
pub sdk : Option < Cow < ' a , ClientSdkInfo > > ,
1644
1644
}
1645
1645
1646
- impl < ' a > Default for Event < ' a > {
1646
+ impl Default for Event < ' _ > {
1647
1647
fn default ( ) -> Self {
1648
1648
Event {
1649
1649
event_id : event:: default_id ( ) ,
@@ -1722,7 +1722,7 @@ impl<'a> Event<'a> {
1722
1722
}
1723
1723
}
1724
1724
1725
- impl < ' a > fmt:: Display for Event < ' a > {
1725
+ impl fmt:: Display for Event < ' _ > {
1726
1726
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1727
1727
write ! (
1728
1728
f,
@@ -1994,7 +1994,7 @@ pub struct Transaction<'a> {
1994
1994
pub server_name : Option < Cow < ' a , str > > ,
1995
1995
}
1996
1996
1997
- impl < ' a > Default for Transaction < ' a > {
1997
+ impl Default for Transaction < ' _ > {
1998
1998
fn default ( ) -> Self {
1999
1999
Transaction {
2000
2000
event_id : event:: default_id ( ) ,
@@ -2049,7 +2049,7 @@ impl<'a> Transaction<'a> {
2049
2049
}
2050
2050
}
2051
2051
2052
- impl < ' a > fmt:: Display for Transaction < ' a > {
2052
+ impl fmt:: Display for Transaction < ' _ > {
2053
2053
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2054
2054
write ! (
2055
2055
f,
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub mod ts_seconds_float {
60
60
61
61
struct SecondsTimestampVisitor ;
62
62
63
- impl < ' de > de:: Visitor < ' de > for SecondsTimestampVisitor {
63
+ impl de:: Visitor < ' _ > for SecondsTimestampVisitor {
64
64
type Value = SystemTime ;
65
65
66
66
fn expecting ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
@@ -144,7 +144,7 @@ pub mod ts_rfc3339 {
144
144
145
145
pub ( super ) struct Rfc3339Deserializer ;
146
146
147
- impl < ' de > de:: Visitor < ' de > for Rfc3339Deserializer {
147
+ impl de:: Visitor < ' _ > for Rfc3339Deserializer {
148
148
type Value = SystemTime ;
149
149
150
150
fn expecting ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments