@@ -223,8 +223,8 @@ impl DTLSConn {
223
223
trace ! (
224
224
"[handshake:{}] {}: {}" ,
225
225
srv_cli_str( self . state. is_client) ,
226
- self . current_flight. to_string ( ) ,
227
- state. to_string ( )
226
+ self . current_flight,
227
+ state
228
228
) ;
229
229
230
230
if state == HandshakeState :: Finished && !self . is_handshake_completed_successfully ( ) {
@@ -332,18 +332,18 @@ impl DTLSConn {
332
332
tokio:: select! {
333
333
done_senders = self . handshake_rx. recv( ) =>{
334
334
if done_senders. is_none( ) {
335
- trace!( "[handshake:{}] {} handshake_tx is dropped" , srv_cli_str( self . state. is_client) , self . current_flight. to_string ( ) ) ;
335
+ trace!( "[handshake:{}] {} handshake_tx is dropped" , srv_cli_str( self . state. is_client) , self . current_flight) ;
336
336
return Err ( Error :: ErrAlertFatalOrClose ) ;
337
337
} else if let Some ( ( rendezvous_tx, done_tx) ) = done_senders {
338
338
rendezvous_tx. send( ( ) ) . ok( ) ;
339
- //trace!("[handshake:{}] {} received handshake_rx", srv_cli_str(self.state.is_client), self.current_flight.to_string() );
339
+ //trace!("[handshake:{}] {} received handshake_rx", srv_cli_str(self.state.is_client), self.current_flight);
340
340
let result = self . current_flight. parse( & mut self . handle_queue_tx, & mut self . state, & self . cache, & self . cfg) . await ;
341
341
drop( done_tx) ;
342
342
match result {
343
343
Err ( ( alert, mut err) ) => {
344
344
trace!( "[handshake:{}] {} result alert:{:?}, err:{:?}" ,
345
345
srv_cli_str( self . state. is_client) ,
346
- self . current_flight. to_string ( ) ,
346
+ self . current_flight,
347
347
alert,
348
348
err) ;
349
349
@@ -361,7 +361,7 @@ impl DTLSConn {
361
361
}
362
362
}
363
363
Ok ( next_flight) => {
364
- trace!( "[handshake:{}] {} -> {}" , srv_cli_str( self . state. is_client) , self . current_flight. to_string ( ) , next_flight. to_string ( ) ) ;
364
+ trace!( "[handshake:{}] {} -> {}" , srv_cli_str( self . state. is_client) , self . current_flight, next_flight) ;
365
365
if next_flight. is_last_recv_flight( ) && self . current_flight. to_string( ) == next_flight. to_string( ) {
366
366
return Ok ( HandshakeState :: Finished ) ;
367
367
}
@@ -373,7 +373,7 @@ impl DTLSConn {
373
373
}
374
374
375
375
_ = retransmit_timer. as_mut( ) =>{
376
- trace!( "[handshake:{}] {} retransmit_timer" , srv_cli_str( self . state. is_client) , self . current_flight. to_string ( ) ) ;
376
+ trace!( "[handshake:{}] {} retransmit_timer" , srv_cli_str( self . state. is_client) , self . current_flight) ;
377
377
378
378
if !self . retransmit {
379
379
return Ok ( HandshakeState :: Waiting ) ;
@@ -393,7 +393,7 @@ impl DTLSConn {
393
393
tokio:: select! {
394
394
done = self . handshake_rx. recv( ) =>{
395
395
if done. is_none( ) {
396
- trace!( "[handshake:{}] {} handshake_tx is dropped" , srv_cli_str( self . state. is_client) , self . current_flight. to_string ( ) ) ;
396
+ trace!( "[handshake:{}] {} handshake_tx is dropped" , srv_cli_str( self . state. is_client) , self . current_flight) ;
397
397
return Err ( Error :: ErrAlertFatalOrClose ) ;
398
398
}
399
399
let result = self . current_flight. parse( & mut self . handle_queue_tx, & mut self . state, & self . cache, & self . cfg) . await ;
0 commit comments