@@ -233,7 +233,7 @@ fn unix_stream_peer_addr() {
233233
234234 // Close the connection to allow the remote to shutdown
235235 drop ( stream) ;
236- std:: fs:: remove_file ( path) . unwrap ( ) ;
236+ let _ = std:: fs:: remove_file ( path) ;
237237
238238 handle. join ( ) . unwrap ( ) ;
239239}
@@ -296,7 +296,7 @@ fn unix_stream_shutdown_read() {
296296
297297 // Close the connection to allow the remote to shutdown
298298 drop ( stream) ;
299- std:: fs:: remove_file ( path) . unwrap ( ) ;
299+ let _ = std:: fs:: remove_file ( path) ;
300300 handle. join ( ) . unwrap ( ) ;
301301}
302302
@@ -359,7 +359,7 @@ fn unix_stream_shutdown_write() {
359359
360360 // Close the connection to allow the remote to shutdown
361361 drop ( stream) ;
362- std:: fs:: remove_file ( path) . unwrap ( ) ;
362+ let _ = std:: fs:: remove_file ( path) ;
363363
364364 handle. join ( ) . unwrap ( ) ;
365365}
@@ -430,7 +430,7 @@ fn unix_stream_shutdown_both() {
430430
431431 // Close the connection to allow the remote to shutdown
432432 drop ( stream) ;
433- std:: fs:: remove_file ( path) . unwrap ( ) ;
433+ let _ = std:: fs:: remove_file ( path) ;
434434
435435 handle. join ( ) . unwrap ( ) ;
436436}
@@ -469,7 +469,7 @@ fn unix_stream_shutdown_listener_write() {
469469 ) ;
470470
471471 barrier. wait ( ) ;
472- std:: fs:: remove_file ( path) . unwrap ( ) ;
472+ let _ = std:: fs:: remove_file ( path) ;
473473
474474 handle. join ( ) . unwrap ( ) ;
475475}
@@ -492,7 +492,7 @@ fn unix_stream_register() {
492492
493493 // Close the connection to allow the remote to shutdown
494494 drop ( stream) ;
495- std:: fs:: remove_file ( path) . unwrap ( ) ;
495+ let _ = std:: fs:: remove_file ( path) ;
496496
497497 handle. join ( ) . unwrap ( ) ;
498498}
@@ -522,7 +522,7 @@ fn unix_stream_reregister() {
522522
523523 // Close the connection to allow the remote to shutdown
524524 drop ( stream) ;
525- std:: fs:: remove_file ( path) . unwrap ( ) ;
525+ let _ = std:: fs:: remove_file ( path) ;
526526
527527 handle. join ( ) . unwrap ( ) ;
528528}
@@ -564,7 +564,7 @@ fn unix_stream_deregister() {
564564
565565 // Close the connection to allow the remote to shutdown
566566 drop ( stream) ;
567- std:: fs:: remove_file ( path) . unwrap ( ) ;
567+ let _ = std:: fs:: remove_file ( path) ;
568568
569569 handle. join ( ) . unwrap ( ) ;
570570}
@@ -636,7 +636,7 @@ where
636636
637637 // Close the connection to allow the remote to shutdown
638638 drop ( stream) ;
639- std:: fs:: remove_file ( remote_addr . as_pathname ( ) . unwrap ( ) ) . unwrap ( ) ;
639+ let _ = std:: fs:: remove_file ( path ) ;
640640 handle. join ( ) . unwrap ( ) ;
641641}
642642
0 commit comments