@@ -101,7 +101,7 @@ impl PyInteropTask {
101101 if let Err ( err) = future. await {
102102 let is_cancelled = Python :: with_gil( |py| err. is_instance_of:: <CancelledError >( py) ) ;
103103 if !is_cancelled {
104- log:: error!( "TCP connection handler coroutine raised an exception:\n {}" , err ) ;
104+ log:: error!( "TCP connection handler coroutine raised an exception:\n {err}" ) ;
105105 }
106106 }
107107 active_streams. lock( ) . await . remove( & connection_id) ;
@@ -112,7 +112,7 @@ impl PyInteropTask {
112112
113113 Ok ( ( ) )
114114 } ) {
115- log:: error!( "Failed to spawn connection handler:\n {}" , err ) ;
115+ log:: error!( "Failed to spawn connection handler:\n {err}" ) ;
116116 } ;
117117 } ,
118118 }
@@ -127,10 +127,7 @@ impl PyInteropTask {
127127 // Future is already finished: just await;
128128 // Python exceptions are already logged by the wrapper coroutine
129129 if let Err ( err) = handle. await {
130- log:: warn!(
131- "TCP connection handler coroutine could not be joined: {}" ,
132- err
133- ) ;
130+ log:: warn!( "TCP connection handler coroutine could not be joined: {err}" ) ;
134131 }
135132 } else {
136133 // Future is not finished: abort tokio task
@@ -139,7 +136,7 @@ impl PyInteropTask {
139136 if let Err ( err) = handle. await {
140137 if !err. is_cancelled ( ) {
141138 // JoinError was not caused by cancellation: coroutine panicked, log error
142- log:: error!( "TCP connection handler coroutine panicked: {}" , err ) ;
139+ log:: error!( "TCP connection handler coroutine panicked: {err}" ) ;
143140 }
144141 }
145142 }
0 commit comments