chore: clippy

This commit is contained in:
skoupidi
2025-10-15 18:20:05 +03:00
parent db1e4df3c9
commit ea24557db4
2 changed files with 2 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ fn tcp_transport() {
let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap();
let port = listener.local_addr().unwrap().port();
drop(listener);
let url = Url::parse(&format!("tcp://127.0.0.1:{}", port)).unwrap();
let url = Url::parse(&format!("tcp://127.0.0.1:{port}")).unwrap();
let listener = Listener::new(url.clone(), None).await.unwrap().listen().await.unwrap();
executor
@@ -66,7 +66,7 @@ fn tcp_tls_transport() {
let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap();
let port = listener.local_addr().unwrap().port();
drop(listener);
let url = Url::parse(&format!("tcp://127.0.0.1:{}", port)).unwrap();
let url = Url::parse(&format!("tcp://127.0.0.1:{port}")).unwrap();
let listener = Listener::new(url.clone(), None).await.unwrap().listen().await.unwrap();
executor