From 466b8a65d24cf975c43f10538619a570c3cfdf1b Mon Sep 17 00:00:00 2001 From: Luca Palmieri Date: Thu, 11 Feb 2021 08:57:08 +0000 Subject: [PATCH] Update to the latest actix-web beta. (#8) Co-authored-by: LukeMathWalker --- Cargo.toml | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a3865fc04..b4cc48dae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["http", "actix-web", "tracing", "logging"] categories = ["asynchronous", "web-programming"] [dependencies] -actix-web = "4.0.0-beta.1" +actix-web = "4.0.0-beta.3" tracing = "0.1.19" tracing-futures = "0.2.4" futures = "0.3.5" diff --git a/src/lib.rs b/src/lib.rs index b39d1a7e7..c7c460049 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,11 +167,11 @@ where type Error = Error; type Future = Pin>>>; - fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { + fn poll_ready(&self, cx: &mut Context<'_>) -> Poll> { self.service.poll_ready(cx) } - fn call(&mut self, req: ServiceRequest) -> Self::Future { + fn call(&self, req: ServiceRequest) -> Self::Future { let user_agent = req .headers() .get("User-Agent")