Support latest actix-web

This commit is contained in:
Aode (Lion) 2021-10-20 18:14:23 -05:00
parent d83b0ad464
commit 5b705d9af8
2 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "actix-form-data"
description = "Multipart Form Data for Actix Web"
version = "0.6.0-beta.9"
version = "0.6.0-beta.10"
license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/Aardwolf/actix-form-data.git"
@ -10,9 +10,9 @@ keywords = ["actix", "form-data", "multipart", "async"]
edition = "2018"
[dependencies]
actix-multipart = "0.4.0-beta.5"
actix-rt = "2.1.0"
actix-web = { version = "4.0.0-beta.7", default-features = false }
actix-multipart = "0.4.0-beta.7"
actix-rt = "2.3.0"
actix-web = { version = "4.0.0-beta.10", default-features = false }
futures-util = "0.3.17"
mime = "0.3.16"
thiserror = "1.0"

View file

@ -72,7 +72,6 @@ where
{
type Error = FromRequestError;
type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>;
type Config = ();
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
let opt = req.extensions_mut().remove::<Uploaded<T>>();