diff --git a/Cargo.toml b/Cargo.toml index 1de850069..add06caa7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ tokio = "0.2.6" tokio-util = "0.2.0" # actix web session -actix-web = { version = "2.0.0-rc", optional = true } +actix-web = { version = "2.0.0", optional = true } actix-service = { version = "1.0.0", optional = true } actix-session = { version = "0.3.0", optional = true } rand = { version = "0.7.0", optional = true } diff --git a/examples/basic.rs b/examples/basic.rs index 6f023fea2..0d95cad80 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -32,6 +32,6 @@ async fn main() -> std::io::Result<()> { .service(web::resource("/").to(index)) }) .bind("0.0.0.0:8080")? - .start() + .run() .await } diff --git a/src/session.rs b/src/session.rs index b7d281dcf..ced1822ad 100644 --- a/src/session.rs +++ b/src/session.rs @@ -10,7 +10,7 @@ use actix_web::cookie::{Cookie, CookieJar, Key, SameSite}; use actix_web::dev::{ServiceRequest, ServiceResponse}; use actix_web::http::header::{self, HeaderValue}; use actix_web::{error, Error, HttpMessage}; -use futures::future::{err, ok, Future, Ready}; +use futures::future::{ok, Future, Ready}; use rand::{distributions::Alphanumeric, rngs::OsRng, Rng}; use redis_async::resp::RespValue; use time::{self, Duration};