File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ impl Tcp {
426
426
// connection refused on the client.
427
427
if let Some ( b) = self . binds . get_mut ( & dst. port ( ) ) {
428
428
if b. deque . len ( ) == self . server_socket_capacity {
429
- panic ! ( "{} server socket buffer full" , dst ) ;
429
+ panic ! ( "{dst } server socket buffer full" ) ;
430
430
}
431
431
432
432
if matches ( b. bind_addr , dst) {
Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ where
636
636
}
637
637
638
638
if interface. is_ipv4 ( ) != addr. is_ipv4 ( ) {
639
- panic ! ( "ip version mismatch: {:?} host: {:?}" , interface , addr )
639
+ panic ! ( "ip version mismatch: {interface :?} host: {addr :?}" )
640
640
}
641
641
642
642
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -740,7 +740,7 @@ mod test {
740
740
let udp_socket =
741
741
UdpSocket :: bind ( ( IpAddr :: V4 ( Ipv4Addr :: UNSPECIFIED ) , 1234 ) ) . await ?;
742
742
udp_socket
743
- . send_to ( & [ 42 ] , format ! ( "{}:1234" , host_b ) )
743
+ . send_to ( & [ 42 ] , format ! ( "{host_b }:1234" ) )
744
744
. await
745
745
. expect ( "sending packet should appear to work, even if partitioned" ) ;
746
746
@@ -765,7 +765,7 @@ mod test {
765
765
let udp_socket =
766
766
UdpSocket :: bind ( ( IpAddr :: V4 ( Ipv4Addr :: UNSPECIFIED ) , 1234 ) ) . await ?;
767
767
udp_socket
768
- . send_to ( & [ 42 ] , format ! ( "{}:1234" , host_a ) )
768
+ . send_to ( & [ 42 ] , format ! ( "{host_a }:1234" ) )
769
769
. await
770
770
. expect ( "sending packet should work" ) ;
771
771
You can’t perform that action at this time.
0 commit comments