From 2f3725d136ae204e60ced39cb683a6220aa723cb Mon Sep 17 00:00:00 2001 From: ibraheemdev Date: Wed, 21 Apr 2021 11:48:19 -0400 Subject: [PATCH] fix either fut bounds --- src/types/either.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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();