From 0548546881175b264624f769ce0f0c4f5f360d53 Mon Sep 17 00:00:00 2001 From: appflowy Date: Mon, 22 Nov 2021 09:04:52 +0800 Subject: [PATCH] [rust]: update actix beta version --- backend/Cargo.toml | 12 ++++++------ backend/src/entities/token.rs | 1 - backend/src/service/user/logged_user.rs | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 85f29ecd99..b1c4acd0c0 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -11,13 +11,13 @@ actix = "0.12" #actix-http = "2.2.1" #actix-web-actors = "3" actix-codec = "0.4" -actix-web = "4.0.0-beta.8" -actix-http = "3.0.0-beta.8" +actix-web = "4.0.0-beta.11" +actix-http = "3.0.0-beta.12" actix-rt = "2" -actix-web-actors = { version = "4.0.0-beta.6" } -actix-service = "2.0.0-beta.5" -actix-identity = "0.4.0-beta.2" -actix-cors = "0.6.0-beta.2" +actix-web-actors = { version = "4.0.0-beta.7" } +actix-service = "2.0.1" +actix-identity = "0.4.0-beta.3" +actix-cors = "0.6.0-beta.3" futures = "0.3.15" bytes = "1" diff --git a/backend/src/entities/token.rs b/backend/src/entities/token.rs index 0c65f99753..a091820c6f 100644 --- a/backend/src/entities/token.rs +++ b/backend/src/entities/token.rs @@ -80,7 +80,6 @@ use backend_service::config::HEADER_TOKEN; use futures::future::{ready, Ready}; impl FromRequest for Token { - //type Config = (); type Error = ServerError; type Future = Ready>; diff --git a/backend/src/service/user/logged_user.rs b/backend/src/service/user/logged_user.rs index 256b1643fc..c0ce7a8f95 100644 --- a/backend/src/service/user/logged_user.rs +++ b/backend/src/service/user/logged_user.rs @@ -41,7 +41,6 @@ use actix_web::{dev::Payload, FromRequest, HttpRequest}; use futures::future::{ready, Ready}; impl FromRequest for LoggedUser { - //type Config = (); type Error = ServerError; type Future = Ready>;