diff --git a/src/extract.rs b/src/extract.rs index c0af6016..3b5c7e74 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -1044,11 +1044,11 @@ impl Default for PayloadConfig { #[doc(hidden)] impl
FromRequest
for () { type Error = Error; - type Future = FutureResult<(), Error>; + type Future = Result<(), Error>; type Config = (); fn from_request(_req: &mut ServiceFromRequest
) -> Self::Future {
- ok(())
+ Ok(())
}
}
@@ -1147,6 +1147,7 @@ tuple_from_req!(TupleFromRequest10, (0, A), (1, B), (2, C), (3, D), (4, E), (5,
#[cfg(test)]
mod tests {
use actix_http::http::header;
+ use actix_router::ResourceDef;
use bytes::Bytes;
use serde_derive::Deserialize;
@@ -1194,218 +1195,196 @@ mod tests {
let s = rt.block_on(Form::