@@ -115,21 +115,14 @@ pub(crate) async fn parse_status<T: Stream<Item = io::Result<ResponseData>> + Un
115
115
break ;
116
116
}
117
117
Status :: Bad => {
118
- return Err ( Error :: Bad ( format ! (
119
- "code: {:?}, info: {:?}" ,
120
- code, information
121
- ) ) )
118
+ return Err ( Error :: Bad ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
122
119
}
123
120
Status :: No => {
124
- return Err ( Error :: No ( format ! (
125
- "code: {:?}, info: {:?}" ,
126
- code, information
127
- ) ) )
121
+ return Err ( Error :: No ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
128
122
}
129
123
_ => {
130
124
return Err ( Error :: Io ( io:: Error :: other ( format ! (
131
- "status: {:?}, code: {:?}, information: {:?}" ,
132
- status, code, information
125
+ "status: {status:?}, code: {code:?}, information: {information:?}"
133
126
) ) ) ) ;
134
127
}
135
128
}
@@ -258,21 +251,14 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
258
251
break ;
259
252
}
260
253
Status :: Bad => {
261
- return Err ( Error :: Bad ( format ! (
262
- "code: {:?}, info: {:?}" ,
263
- code, information
264
- ) ) )
254
+ return Err ( Error :: Bad ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
265
255
}
266
256
Status :: No => {
267
- return Err ( Error :: No ( format ! (
268
- "code: {:?}, info: {:?}" ,
269
- code, information
270
- ) ) )
257
+ return Err ( Error :: No ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
271
258
}
272
259
_ => {
273
260
return Err ( Error :: Io ( io:: Error :: other ( format ! (
274
- "status: {:?}, code: {:?}, information: {:?}" ,
275
- status, code, information
261
+ "status: {status:?}, code: {code:?}, information: {information:?}"
276
262
) ) ) ) ;
277
263
}
278
264
}
@@ -309,21 +295,14 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
309
295
}
310
296
}
311
297
Status :: Bad => {
312
- return Err ( Error :: Bad ( format ! (
313
- "code: {:?}, info: {:?}" ,
314
- code, information
315
- ) ) )
298
+ return Err ( Error :: Bad ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
316
299
}
317
300
Status :: No => {
318
- return Err ( Error :: No ( format ! (
319
- "code: {:?}, info: {:?}" ,
320
- code, information
321
- ) ) )
301
+ return Err ( Error :: No ( format ! ( "code: {code:?}, info: {information:?}" ) ) )
322
302
}
323
303
_ => {
324
304
return Err ( Error :: Io ( io:: Error :: other ( format ! (
325
- "status: {:?}, code: {:?}, information: {:?}" ,
326
- status, code, information
305
+ "status: {status:?}, code: {code:?}, information: {information:?}"
327
306
) ) ) ) ;
328
307
}
329
308
}
0 commit comments