diff --git a/src/types/either.rs b/src/types/either.rs index d5108063e..d3b003587 100644 --- a/src/types/either.rs +++ b/src/types/either.rs @@ -232,14 +232,16 @@ where }, } -impl Future for EitherExtractFut +impl Future for EitherExtractFut where L: FromRequest, R: FromRequest, - LF: Future> + 'static, - RF: Future> + 'static, + LF: Future> + 'static, + RF: Future> + 'static, + LE: Into, + RE: Into, { - type Output = Result, EitherExtractError>; + type Output = Result, EitherExtractError>; fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { let mut this = self.project();