From 65e07064db58274109fe28d09a16f1790ba38f6d Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 12 Sep 2019 01:31:14 +0900 Subject: [PATCH] Update pin-project to 0.4.0-alpha.11 --- tower-balance/Cargo.toml | 2 +- tower-buffer/Cargo.toml | 2 +- tower-discover/Cargo.toml | 2 +- tower-filter/Cargo.toml | 2 +- tower-limit/Cargo.toml | 2 +- tower-limit/src/concurrency/future.rs | 6 ++++-- tower-load-shed/Cargo.toml | 2 +- tower-load/Cargo.toml | 2 +- tower-reconnect/Cargo.toml | 2 +- tower-retry/Cargo.toml | 2 +- tower-spawn-ready/Cargo.toml | 2 +- tower-test/Cargo.toml | 2 +- tower-timeout/Cargo.toml | 2 +- tower-util/Cargo.toml | 2 +- 14 files changed, 17 insertions(+), 15 deletions(-) diff --git a/tower-balance/Cargo.toml b/tower-balance/Cargo.toml index 0650905d..4de9c28f 100644 --- a/tower-balance/Cargo.toml +++ b/tower-balance/Cargo.toml @@ -29,7 +29,7 @@ default = ["log"] [dependencies] futures-util-preview = "0.3.0-alpha.18" futures-core-preview = "0.3.0-alpha.18" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" indexmap = "1.0.2" tracing = "0.1" rand = "0.6.5" diff --git a/tower-buffer/Cargo.toml b/tower-buffer/Cargo.toml index bb1de57a..d7ed6e1d 100644 --- a/tower-buffer/Cargo.toml +++ b/tower-buffer/Cargo.toml @@ -27,7 +27,7 @@ default = ["log"] [dependencies] futures-core-preview = "0.3.0-alpha.18" -pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] } +pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] } tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } tokio-executor = "0.2.0-alpha.4" diff --git a/tower-discover/Cargo.toml b/tower-discover/Cargo.toml index 31546525..3c903ab8 100644 --- a/tower-discover/Cargo.toml +++ b/tower-discover/Cargo.toml @@ -24,4 +24,4 @@ edition = "2018" [dependencies] futures-core-preview = "0.3.0-alpha.18" tower-service = "0.3.0-alpha.1" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" diff --git a/tower-filter/Cargo.toml b/tower-filter/Cargo.toml index 90bc049d..adf5b33b 100644 --- a/tower-filter/Cargo.toml +++ b/tower-filter/Cargo.toml @@ -26,7 +26,7 @@ publish = false [dependencies] tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } -pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] } +pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] } futures-core-preview = "0.3.0-alpha.18" [dev-dependencies] diff --git a/tower-limit/Cargo.toml b/tower-limit/Cargo.toml index fc1da2b5..0be4f2aa 100644 --- a/tower-limit/Cargo.toml +++ b/tower-limit/Cargo.toml @@ -27,7 +27,7 @@ tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } tokio-sync = "0.2.0-alpha.4" tokio-timer = "0.3.0-alpha.4" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" [dev-dependencies] tower-test = { version = "0.3.0-alpha.1", path = "../tower-test" } diff --git a/tower-limit/src/concurrency/future.rs b/tower-limit/src/concurrency/future.rs index 6f88a2cc..2d8cc3c4 100644 --- a/tower-limit/src/concurrency/future.rs +++ b/tower-limit/src/concurrency/future.rs @@ -39,6 +39,8 @@ where } #[pinned_drop] -fn drop_response_future(mut rfut: Pin<&mut ResponseFuture>) { - rfut.project().semaphore.add_permits(1); +impl PinnedDrop for ResponseFuture { + fn drop(mut self: Pin<&mut Self>) { + self.project().semaphore.add_permits(1); + } } diff --git a/tower-load-shed/Cargo.toml b/tower-load-shed/Cargo.toml index dcf30991..f75f9f7b 100644 --- a/tower-load-shed/Cargo.toml +++ b/tower-load-shed/Cargo.toml @@ -25,7 +25,7 @@ edition = "2018" [dependencies] tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } -pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] } +pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] } futures-core-preview = "0.3.0-alpha.18" [dev-dependencies] diff --git a/tower-load/Cargo.toml b/tower-load/Cargo.toml index ca2d70cc..ec4a6eaa 100644 --- a/tower-load/Cargo.toml +++ b/tower-load/Cargo.toml @@ -28,7 +28,7 @@ log = "0.4.1" tokio-timer = "0.3.0-alpha.4" tower-service = "0.3.0-alpha.1" tower-discover = { version = "0.3.0-alpha.1", path = "../tower-discover" } -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" [dev-dependencies] tokio-test = "0.2.0-alpha.4" diff --git a/tower-reconnect/Cargo.toml b/tower-reconnect/Cargo.toml index ff59415b..0a71bb1a 100644 --- a/tower-reconnect/Cargo.toml +++ b/tower-reconnect/Cargo.toml @@ -26,4 +26,4 @@ publish = false log = "0.4.1" tower-service = "0.3.0-alpha.1" tower-make = { version = "0.3.0-alpha.1", path = "../tower-make" } -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" diff --git a/tower-retry/Cargo.toml b/tower-retry/Cargo.toml index cac9a2dd..10719c54 100644 --- a/tower-retry/Cargo.toml +++ b/tower-retry/Cargo.toml @@ -25,7 +25,7 @@ edition = "2018" tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } tokio-timer = "0.3.0-alpha.4" -pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] } +pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] } futures-core-preview = "0.3.0-alpha.18" [dev-dependencies] diff --git a/tower-spawn-ready/Cargo.toml b/tower-spawn-ready/Cargo.toml index 7cc8e5e1..bbaeffbc 100644 --- a/tower-spawn-ready/Cargo.toml +++ b/tower-spawn-ready/Cargo.toml @@ -25,7 +25,7 @@ publish = false # FIXME [dependencies] futures-core-preview = "0.3.0-alpha.18" futures-util-preview = "0.3.0-alpha.18" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } tower-util = { version = "0.3.0-alpha.1", path = "../tower-util" } diff --git a/tower-test/Cargo.toml b/tower-test/Cargo.toml index eee52ffc..25e9d364 100644 --- a/tower-test/Cargo.toml +++ b/tower-test/Cargo.toml @@ -27,4 +27,4 @@ futures-executor-preview = "0.3.0-alpha.18" tokio-test = "0.2.0-alpha.2" tokio-sync = "0.2.0-alpha.2" tower-service = "0.3.0-alpha.1" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" diff --git a/tower-timeout/Cargo.toml b/tower-timeout/Cargo.toml index 3759ed4e..e6befe88 100644 --- a/tower-timeout/Cargo.toml +++ b/tower-timeout/Cargo.toml @@ -25,4 +25,4 @@ edition = "2018" tower-service = "0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } tokio-timer = "0.3.0-alpha.1" -pin-project = "0.4.0-alpha.10" +pin-project = "0.4.0-alpha.11" diff --git a/tower-util/Cargo.toml b/tower-util/Cargo.toml index f3b36ca0..438f0278 100644 --- a/tower-util/Cargo.toml +++ b/tower-util/Cargo.toml @@ -25,7 +25,7 @@ edition = "2018" [dependencies] tower-service = "=0.3.0-alpha.1" tower-layer = { version = "0.3.0-alpha.1", path = "../tower-layer" } -pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] } +pin-project = { version = "0.4.0-alpha.11", features = ["project_attr"] } futures-util-preview = "0.3.0-alpha.18" futures-core-preview = "0.3.0-alpha.18"