mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
chore: clippy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user