From 411d08c121136e30d4bf3cf48364b1dce32f7742 Mon Sep 17 00:00:00 2001 From: Masaki Hara Date: Sat, 8 Sep 2018 16:27:21 +0900 Subject: [PATCH] Update actix-web to 0.7. (Closes #4) --- Cargo.toml | 2 +- examples/extractor_basic.rs | 2 +- examples/extractor_bearer.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1fbfbea7f..bdb1bce89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT/Apache-2.0" exclude = [".travis.yml", ".gitignore"] [dependencies] -actix-web = "0.6" +actix-web = "0.7" bytes = "0.4" base64 = "0.9" diff --git a/examples/extractor_basic.rs b/examples/extractor_basic.rs index 8e63ae397..043289a04 100644 --- a/examples/extractor_basic.rs +++ b/examples/extractor_basic.rs @@ -9,7 +9,7 @@ use actix_web_httpauth::extractors::AuthenticationError; struct Auth; impl Middleware for Auth { - fn start(&self, req: &mut HttpRequest) -> Result { + fn start(&self, req: &HttpRequest) -> Result { let mut config = Config::default(); config.realm("WallyWorld"); let auth = BasicAuth::from_request(&req, &config)?; diff --git a/examples/extractor_bearer.rs b/examples/extractor_bearer.rs index 145abecca..560eb74d4 100644 --- a/examples/extractor_bearer.rs +++ b/examples/extractor_bearer.rs @@ -9,7 +9,7 @@ use actix_web::middleware::{Middleware, Started}; struct Auth; impl Middleware for Auth { - fn start(&self, req: &mut HttpRequest) -> Result { + fn start(&self, req: &HttpRequest) -> Result { let mut config = Config::default(); config.realm("Restricted area"); config.scope("openid profile email");