From 63a8c27612fadef3eeaa7e7182881a509e8af66a Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 15 Nov 2021 02:52:22 +0000 Subject: [PATCH] remove unused deps --- Cargo.toml | 1 - actix-http/Cargo.toml | 3 +-- actix-http/tests/test_h2_ping_pong.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 724115cc2..8cbf50ff7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -117,7 +117,6 @@ rcgen = "0.8" rustls-pemfile = "0.2" tls-openssl = { package = "openssl", version = "0.10.9" } tls-rustls = { package = "rustls", version = "0.20.0" } -tokio = { version = "1.2", features = ["time"] } zstd = "0.7" [profile.dev] diff --git a/actix-http/Cargo.toml b/actix-http/Cargo.toml index ff84cdb7a..6f935ce9b 100644 --- a/actix-http/Cargo.toml +++ b/actix-http/Cargo.toml @@ -71,7 +71,6 @@ pin-project-lite = "0.2" rand = "0.8" sha-1 = "0.9" smallvec = "1.6.1" -tokio = { version = "1.2", features = ["sync"] } # tls actix-tls = { version = "3.0.0-beta.7", default-features = false, optional = true } @@ -95,7 +94,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tls-openssl = { package = "openssl", version = "0.10.9" } tls-rustls = { package = "rustls", version = "0.20.0" } -tokio = { version = "1.2", features = ["sync", "rt-multi-thread", "macros"] } +tokio = { version = "1.2", features = ["net", "rt"] } [[example]] name = "ws" diff --git a/actix-http/tests/test_h2_ping_pong.rs b/actix-http/tests/test_h2_ping_pong.rs index d4ff2fbe8..30ce9aa51 100644 --- a/actix-http/tests/test_h2_ping_pong.rs +++ b/actix-http/tests/test_h2_ping_pong.rs @@ -24,7 +24,7 @@ async fn h2_ping_pong() -> io::Result<()> { })? .run(); - tx.send(srv.handle().clone()).unwrap(); + tx.send(srv.handle()).unwrap(); srv.await })