Bläddra i källkod

chore: clippy

skoupidi 9 månader sedan
förälder
incheckning
ea24557db4
2 ändrade filer med 2 tillägg och 6 borttagningar
  1. 0 4
      example/wasm-hello-world/Cargo.toml
  2. 2 2
      tests/network_transports.rs

+ 0 - 4
example/wasm-hello-world/Cargo.toml

@@ -22,7 +22,3 @@ getrandom = { version = "0.2.8", features = ["custom"] }
 [features]
 default = []
 no-entrypoint = []
-
-#[lints]
-#workspace = true
-

+ 2 - 2
tests/network_transports.rs

@@ -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