@@ -22,7 +22,7 @@ impl NetworkLengthTooLongError {
22
22
}
23
23
24
24
impl fmt:: Debug for NetworkLengthTooLongError {
25
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
25
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
26
26
write ! (
27
27
w,
28
28
"Network length {} is too long for {:?} (maximum: {})" ,
@@ -33,7 +33,7 @@ impl fmt::Debug for NetworkLengthTooLongError {
33
33
}
34
34
}
35
35
impl fmt:: Display for NetworkLengthTooLongError {
36
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
36
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
37
37
fmt:: Debug :: fmt ( self , w)
38
38
}
39
39
}
@@ -64,7 +64,7 @@ pub enum NetworkParseError {
64
64
NetworkLengthTooLongError ( NetworkLengthTooLongError ) ,
65
65
}
66
66
impl fmt:: Debug for NetworkParseError {
67
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
67
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
68
68
match self {
69
69
Self :: InvalidHostPart => write ! ( w, "host part of address was not zero" ) ,
70
70
Self :: AddrParseError ( e) => {
@@ -80,7 +80,7 @@ impl fmt::Debug for NetworkParseError {
80
80
}
81
81
}
82
82
impl fmt:: Display for NetworkParseError {
83
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
83
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
84
84
fmt:: Debug :: fmt ( self , w)
85
85
}
86
86
}
@@ -132,7 +132,7 @@ pub enum InetTupleError {
132
132
}
133
133
134
134
impl fmt:: Debug for InetTupleError {
135
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
135
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
136
136
match self {
137
137
Self :: NotInSharedNetwork => write ! ( w, "addresses not in shared network" ) ,
138
138
Self :: NetworkLengthTooLongError ( e) => {
@@ -143,7 +143,7 @@ impl fmt::Debug for InetTupleError {
143
143
}
144
144
145
145
impl fmt:: Display for InetTupleError {
146
- fn fmt ( & self , w : & mut fmt:: Formatter ) -> fmt:: Result {
146
+ fn fmt ( & self , w : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
147
147
fmt:: Debug :: fmt ( self , w)
148
148
}
149
149
}
0 commit comments