@@ -483,7 +483,7 @@ fn connect_timeout_unrouteable() {
483
483
match socket. connect_timeout ( & addr, Duration :: from_millis ( 250 ) ) {
484
484
Ok ( _) => panic ! ( "unexpected success" ) ,
485
485
Err ( ref err) if err. kind ( ) == io:: ErrorKind :: TimedOut => { }
486
- Err ( err) => panic ! ( "unexpected error {}" , err ) ,
486
+ Err ( err) => panic ! ( "unexpected error {err}" ) ,
487
487
}
488
488
}
489
489
@@ -503,7 +503,7 @@ fn connect_timeout_unbound() {
503
503
Err ( ref err)
504
504
if err. kind ( ) == io:: ErrorKind :: ConnectionRefused
505
505
|| err. kind ( ) == io:: ErrorKind :: TimedOut => { }
506
- Err ( err) => panic ! ( "unexpected error {}" , err ) ,
506
+ Err ( err) => panic ! ( "unexpected error {err}" ) ,
507
507
}
508
508
}
509
509
@@ -974,7 +974,7 @@ fn device() {
974
974
eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
975
975
continue ;
976
976
} else {
977
- panic ! ( "unexpected error binding device: {}" , err ) ;
977
+ panic ! ( "unexpected error binding device: {err}" ) ;
978
978
}
979
979
}
980
980
assert_eq ! (
@@ -1025,7 +1025,7 @@ fn device() {
1025
1025
eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
1026
1026
continue ;
1027
1027
} else {
1028
- panic ! ( "unexpected error binding device: {}" , err ) ;
1028
+ panic ! ( "unexpected error binding device: {err}" ) ;
1029
1029
}
1030
1030
}
1031
1031
assert_eq ! ( socket. device_index_v4( ) . unwrap( ) , iface_index) ;
@@ -1073,7 +1073,7 @@ fn device_v6() {
1073
1073
eprintln ! ( "error binding to device (`{interface}`): {err}" ) ;
1074
1074
continue ;
1075
1075
} else {
1076
- panic ! ( "unexpected error binding device: {}" , err ) ;
1076
+ panic ! ( "unexpected error binding device: {err}" ) ;
1077
1077
}
1078
1078
}
1079
1079
assert_eq ! ( socket. device_index_v6( ) . unwrap( ) , iface_index) ;
@@ -1595,7 +1595,7 @@ fn header_included() {
1595
1595
Err ( ref err) if err. kind ( ) == io:: ErrorKind :: PermissionDenied => return ,
1596
1596
#[ cfg( unix) ]
1597
1597
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}" ) ,
1599
1599
} ;
1600
1600
1601
1601
let initial = socket
@@ -1629,7 +1629,7 @@ fn header_included_ipv6() {
1629
1629
Err ( ref err) if err. kind ( ) == io:: ErrorKind :: PermissionDenied => return ,
1630
1630
#[ cfg( unix) ]
1631
1631
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}" ) ,
1633
1633
} ;
1634
1634
1635
1635
let initial = socket
0 commit comments