mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
update all packages to use actix-web v3 (#94)
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
# Changes
|
||||
|
||||
## [unreleased]
|
||||
|
||||
* Minimum supported Rust version(MSRV) is now 1.40.0.
|
||||
## Unreleased - 2020-xx-xx
|
||||
* Update `actix-web` dependency to 3.0.0.
|
||||
* Minimum supported Rust version(MSRV) is now 1.42.0.
|
||||
|
||||
## [0.3.0-alpha.1] - 2020-03-14
|
||||
|
||||
|
@ -16,14 +16,14 @@ name = "actix_identity"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { version = "3.0.0-alpha.1", default-features = false, features = ["secure-cookies"] }
|
||||
actix-service = "1.0.2"
|
||||
actix-web = { version = "3.0.0", default-features = false, features = ["secure-cookies"] }
|
||||
actix-service = "1.0.6"
|
||||
futures-util = { version = "0.3.4", default-features = false }
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
time = { version = "0.2.7", default-features = false, features = ["std"] }
|
||||
|
||||
[dev-dependencies]
|
||||
actix-rt = "1.0.0"
|
||||
actix-http = "2.0.0-alpha.2"
|
||||
actix-rt = "1.1.1"
|
||||
actix-http = "2.0.0"
|
||||
bytes = "0.5.3"
|
||||
|
@ -48,6 +48,7 @@
|
||||
//! ```
|
||||
|
||||
#![allow(clippy::needless_doctest_main)]
|
||||
#![deny(rust_2018_idioms)]
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::future::Future;
|
||||
@ -274,7 +275,7 @@ where
|
||||
type Error = Error;
|
||||
type Future = LocalBoxFuture<'static, Result<Self::Response, Self::Error>>;
|
||||
|
||||
fn poll_ready(&mut self, cx: &mut Context) -> Poll<Result<(), Self::Error>> {
|
||||
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||
self.service.borrow_mut().poll_ready(cx)
|
||||
}
|
||||
|
||||
@ -424,7 +425,7 @@ impl CookieIdentityInner {
|
||||
})
|
||||
}
|
||||
|
||||
fn parse(&self, cookie: Cookie) -> Option<CookieValue> {
|
||||
fn parse(&self, cookie: Cookie<'_>) -> Option<CookieValue> {
|
||||
let value: CookieValue = serde_json::from_str(cookie.value()).ok()?;
|
||||
let now = SystemTime::now();
|
||||
if let Some(visit_deadline) = self.visit_deadline {
|
||||
|
Reference in New Issue
Block a user