Support latest actix-web
This commit is contained in:
parent
d83b0ad464
commit
5b705d9af8
2 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "actix-form-data"
|
name = "actix-form-data"
|
||||||
description = "Multipart Form Data for Actix Web"
|
description = "Multipart Form Data for Actix Web"
|
||||||
version = "0.6.0-beta.9"
|
version = "0.6.0-beta.10"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
authors = ["asonix <asonix@asonix.dog>"]
|
authors = ["asonix <asonix@asonix.dog>"]
|
||||||
repository = "https://git.asonix.dog/Aardwolf/actix-form-data.git"
|
repository = "https://git.asonix.dog/Aardwolf/actix-form-data.git"
|
||||||
|
@ -10,9 +10,9 @@ keywords = ["actix", "form-data", "multipart", "async"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-multipart = "0.4.0-beta.5"
|
actix-multipart = "0.4.0-beta.7"
|
||||||
actix-rt = "2.1.0"
|
actix-rt = "2.3.0"
|
||||||
actix-web = { version = "4.0.0-beta.7", default-features = false }
|
actix-web = { version = "4.0.0-beta.10", default-features = false }
|
||||||
futures-util = "0.3.17"
|
futures-util = "0.3.17"
|
||||||
mime = "0.3.16"
|
mime = "0.3.16"
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
|
@ -72,7 +72,6 @@ where
|
||||||
{
|
{
|
||||||
type Error = FromRequestError;
|
type Error = FromRequestError;
|
||||||
type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>;
|
type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>;
|
||||||
type Config = ();
|
|
||||||
|
|
||||||
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
|
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
|
||||||
let opt = req.extensions_mut().remove::<Uploaded<T>>();
|
let opt = req.extensions_mut().remove::<Uploaded<T>>();
|
||||||
|
|
Loading…
Reference in a new issue