@@ -115,21 +115,14 @@ pub(crate) async fn parse_status<T: Stream<Item = io::Result<ResponseData>> + Un
115115 break ;
116116 }
117117 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:?}" ) ) )
122119 }
123120 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:?}" ) ) )
128122 }
129123 _ => {
130124 return Err ( Error :: Io ( io:: Error :: other ( format ! (
131- "status: {:?}, code: {:?}, information: {:?}" ,
132- status, code, information
125+ "status: {status:?}, code: {code:?}, information: {information:?}"
133126 ) ) ) ) ;
134127 }
135128 }
@@ -258,21 +251,14 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
258251 break ;
259252 }
260253 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:?}" ) ) )
265255 }
266256 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:?}" ) ) )
271258 }
272259 _ => {
273260 return Err ( Error :: Io ( io:: Error :: other ( format ! (
274- "status: {:?}, code: {:?}, information: {:?}" ,
275- status, code, information
261+ "status: {status:?}, code: {code:?}, information: {information:?}"
276262 ) ) ) ) ;
277263 }
278264 }
@@ -309,21 +295,14 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
309295 }
310296 }
311297 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:?}" ) ) )
316299 }
317300 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:?}" ) ) )
322302 }
323303 _ => {
324304 return Err ( Error :: Io ( io:: Error :: other ( format ! (
325- "status: {:?}, code: {:?}, information: {:?}" ,
326- status, code, information
305+ "status: {status:?}, code: {code:?}, information: {information:?}"
327306 ) ) ) ) ;
328307 }
329308 }
0 commit comments