@@ -483,7 +483,7 @@ fn connect_timeout_unrouteable() {
483483 match socket. connect_timeout ( & addr, Duration :: from_millis ( 250 ) ) {
484484 Ok ( _) => panic ! ( "unexpected success" ) ,
485485 Err ( ref err) if err. kind ( ) == io:: ErrorKind :: TimedOut => { }
486- Err ( err) => panic ! ( "unexpected error {}" , err ) ,
486+ Err ( err) => panic ! ( "unexpected error {err}" ) ,
487487 }
488488}
489489
@@ -503,7 +503,7 @@ fn connect_timeout_unbound() {
503503 Err ( ref err)
504504 if err. kind ( ) == io:: ErrorKind :: ConnectionRefused
505505 || err. kind ( ) == io:: ErrorKind :: TimedOut => { }
506- Err ( err) => panic ! ( "unexpected error {}" , err ) ,
506+ Err ( err) => panic ! ( "unexpected error {err}" ) ,
507507 }
508508}
509509
@@ -974,7 +974,7 @@ fn device() {
974974 eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
975975 continue ;
976976 } else {
977- panic ! ( "unexpected error binding device: {}" , err ) ;
977+ panic ! ( "unexpected error binding device: {err}" ) ;
978978 }
979979 }
980980 assert_eq ! (
@@ -1025,7 +1025,7 @@ fn device() {
10251025 eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
10261026 continue ;
10271027 } else {
1028- panic ! ( "unexpected error binding device: {}" , err ) ;
1028+ panic ! ( "unexpected error binding device: {err}" ) ;
10291029 }
10301030 }
10311031 assert_eq ! ( socket. device_index_v4( ) . unwrap( ) , iface_index) ;
@@ -1073,7 +1073,7 @@ fn device_v6() {
10731073 eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
10741074 continue ;
10751075 } else {
1076- panic ! ( "unexpected error binding device: {}" , err ) ;
1076+ panic ! ( "unexpected error binding device: {err}" ) ;
10771077 }
10781078 }
10791079 assert_eq ! ( socket. device_index_v6( ) . unwrap( ) , iface_index) ;
@@ -1595,7 +1595,7 @@ fn header_included() {
15951595 Err ( ref err) if err. kind ( ) == io:: ErrorKind :: PermissionDenied => return ,
15961596 #[ cfg( unix) ]
15971597 Err ( ref err) if err. raw_os_error ( ) == Some ( libc:: EPROTONOSUPPORT ) => return ,
1598- Err ( err) => panic ! ( "unexpected error creating socket: {}" , err ) ,
1598+ Err ( err) => panic ! ( "unexpected error creating socket: {err}" ) ,
15991599 } ;
16001600
16011601 let initial = socket
@@ -1629,7 +1629,7 @@ fn header_included_ipv6() {
16291629 Err ( ref err) if err. kind ( ) == io:: ErrorKind :: PermissionDenied => return ,
16301630 #[ cfg( unix) ]
16311631 Err ( ref err) if err. raw_os_error ( ) == Some ( libc:: EPROTONOSUPPORT ) => return ,
1632- Err ( err) => panic ! ( "unexpected error creating socket: {}" , err ) ,
1632+ Err ( err) => panic ! ( "unexpected error creating socket: {err}" ) ,
16331633 } ;
16341634
16351635 let initial = socket
0 commit comments