@@ -76,7 +76,7 @@ impl Connection<DebugReader<ChildStdout>, DebugWriter<ChildStdin>> {
7676 let working_dir = tempfile:: tempdir ( ) ?;
7777 let debug_enabled = env:: var ( "AGEDEBUG" ) . map ( |s| s == "plugin" ) . unwrap_or ( false ) ;
7878 let process = Command :: new ( binary. canonicalize ( ) ?)
79- . arg ( format ! ( "--age-plugin={}" , state_machine ) )
79+ . arg ( format ! ( "--age-plugin={state_machine}" ) )
8080 . current_dir ( working_dir. path ( ) )
8181 . stdin ( Stdio :: piped ( ) )
8282 . stdout ( Stdio :: piped ( ) )
@@ -124,7 +124,7 @@ impl<R: Read, W: Write> Connection<R, W> {
124124 cookie_factory:: gen_simple ( write:: age_stanza ( command, metadata, data) , & mut self . output )
125125 . map_err ( |e| match e {
126126 GenError :: IoError ( e) => e,
127- e => io:: Error :: new ( io :: ErrorKind :: Other , format ! ( "{}" , e ) ) ,
127+ e => io:: Error :: other ( format ! ( "{e}" ) ) ,
128128 } )
129129 . and_then ( |w| w. flush ( ) )
130130 }
@@ -356,7 +356,7 @@ impl<R: Read, W: Write> BidirSend<'_, R, W> {
356356 RESPONSE_UNSUPPORTED => Ok ( Err ( Error :: Unsupported ) ) ,
357357 tag => Err ( io:: Error :: new (
358358 io:: ErrorKind :: InvalidData ,
359- format ! ( "unexpected response: {}" , tag ) ,
359+ format ! ( "unexpected response: {tag}" ) ,
360360 ) ) ,
361361 }
362362 }
@@ -380,7 +380,7 @@ impl<R: Read, W: Write> BidirSend<'_, R, W> {
380380 RESPONSE_UNSUPPORTED => Ok ( Err ( Error :: Unsupported ) ) ,
381381 tag => Err ( io:: Error :: new (
382382 io:: ErrorKind :: InvalidData ,
383- format ! ( "unexpected response: {}" , tag ) ,
383+ format ! ( "unexpected response: {tag}" ) ,
384384 ) ) ,
385385 }
386386 }
0 commit comments