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");