diff --git a/src/types.rs b/src/types.rs index 2ca114e..c5b11ab 100644 --- a/src/types.rs +++ b/src/types.rs @@ -158,8 +158,6 @@ pub type FileFn = Box< Mime, Pin>>>, ) -> Pin>>> - + Send - + Sync, >; /// The field type represents a field in the form-data that is allowed to be parsed. @@ -218,8 +216,6 @@ impl Field { pub fn file(f: F) -> Self where F: Fn(String, Mime, Pin>>>) -> Fut - + Send - + Sync + Clone + 'static, Fut: Future> + 'static, @@ -477,7 +473,7 @@ pub struct Form { pub(crate) max_field_size: usize, pub(crate) max_files: u32, pub(crate) max_file_size: usize, - pub(crate) transform_error: Option actix_web::Error + Send + Sync>>, + pub(crate) transform_error: Option actix_web::Error + Sync>>, inner: Map, } @@ -511,7 +507,7 @@ impl Form { /// Set the Transform Error method to convert Error types into actix_web::Error by hand pub fn transform_error( mut self, - f: impl Fn(Error) -> actix_web::Error + Send + Sync + 'static, + f: impl Fn(Error) -> actix_web::Error + Sync + 'static, ) -> Self { self.transform_error = Some(Box::new(f)); self