@@ -274,20 +274,20 @@ pub mod test {
274
274
275
275
fn run ( & self , port : u64 ) {
276
276
// Create the address string once
277
- let addr = format ! ( "127.0.0.1:{}" , port ) ;
277
+ let addr = format ! ( "127.0.0.1:{port}" ) ;
278
278
279
279
// Create a TCP listener bound to the specified port
280
280
let listener = TcpListener :: bind ( & addr) . unwrap ( ) ;
281
- println ! ( "Server running at http://{}" , addr ) ;
281
+ println ! ( "Server running at http://{addr}" ) ;
282
282
283
283
// Listen for incoming connections
284
284
for stream in listener. incoming ( ) {
285
285
match stream {
286
286
Ok ( stream) => {
287
287
self . handle_connection ( stream) ;
288
288
}
289
- Err ( e ) => {
290
- eprintln ! ( "Connection failed: {}" , e ) ;
289
+ Err ( err ) => {
290
+ eprintln ! ( "Connection failed: {err}" ) ;
291
291
}
292
292
}
293
293
}
@@ -337,7 +337,7 @@ pub mod test {
337
337
// ugly wait for BlocklistHttpServer
338
338
tokio:: time:: sleep ( Duration :: from_millis ( 200 ) ) . await ;
339
339
let provider = HttpBlockListProvider :: new (
340
- Url :: parse ( & format ! ( "http://127.0.0.1:{}" , PORT ) ) . unwrap ( ) ,
340
+ Url :: parse ( & format ! ( "http://127.0.0.1:{PORT}" ) ) . unwrap ( ) ,
341
341
Duration :: from_secs ( AGE_SECS ) ,
342
342
true ,
343
343
cancellation. clone ( ) ,
0 commit comments