@@ -168,11 +168,11 @@ pub struct TryRecvError {
168
168
}
169
169
170
170
impl fmt:: Display for SendError {
171
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
171
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
172
172
if self . is_full ( ) {
173
- write ! ( fmt , "send failed because channel is full" )
173
+ write ! ( f , "send failed because channel is full" )
174
174
} else {
175
- write ! ( fmt , "send failed because receiver is gone" )
175
+ write ! ( f , "send failed because receiver is gone" )
176
176
}
177
177
}
178
178
}
@@ -198,19 +198,19 @@ impl SendError {
198
198
}
199
199
200
200
impl < T > fmt:: Debug for TrySendError < T > {
201
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
202
- fmt . debug_struct ( "TrySendError" )
201
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
202
+ f . debug_struct ( "TrySendError" )
203
203
. field ( "kind" , & self . err . kind )
204
204
. finish ( )
205
205
}
206
206
}
207
207
208
208
impl < T > fmt:: Display for TrySendError < T > {
209
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
209
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
210
210
if self . is_full ( ) {
211
- write ! ( fmt , "send failed because channel is full" )
211
+ write ! ( f , "send failed because channel is full" )
212
212
} else {
213
- write ! ( fmt , "send failed because receiver is gone" )
213
+ write ! ( f , "send failed because receiver is gone" )
214
214
}
215
215
}
216
216
}
@@ -240,15 +240,15 @@ impl<T> TrySendError<T> {
240
240
}
241
241
242
242
impl fmt:: Debug for TryRecvError {
243
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
244
- fmt . debug_tuple ( "TryRecvError" )
243
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
244
+ f . debug_tuple ( "TryRecvError" )
245
245
. finish ( )
246
246
}
247
247
}
248
248
249
249
impl fmt:: Display for TryRecvError {
250
- fn fmt ( & self , fmt : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
251
- write ! ( fmt , "receiver channel is empty" )
250
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
251
+ write ! ( f , "receiver channel is empty" )
252
252
}
253
253
}
254
254
0 commit comments