mirror of https://github.com/fafhrd91/actix-web
fix either fut bounds
This commit is contained in:
parent
a65ecf9acf
commit
2f3725d136
|
@ -232,14 +232,16 @@ where
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<RF, RT, RE, LF, LT, LE, L, R> Future for EitherExtractFut<L, R>
|
impl<R, RF, RE, L, LF, LE> Future for EitherExtractFut<L, R>
|
||||||
where
|
where
|
||||||
L: FromRequest<Future = LF, Error = LE>,
|
L: FromRequest<Future = LF, Error = LE>,
|
||||||
R: FromRequest<Future = RF, Error = RE>,
|
R: FromRequest<Future = RF, Error = RE>,
|
||||||
LF: Future<Output = Result<LT, LE>> + 'static,
|
LF: Future<Output = Result<L, LE>> + 'static,
|
||||||
RF: Future<Output = Result<RT, RE>> + 'static,
|
RF: Future<Output = Result<R, RE>> + 'static,
|
||||||
|
LE: Into<Error>,
|
||||||
|
RE: Into<Error>,
|
||||||
{
|
{
|
||||||
type Output = Result<Either<LT, RT>, EitherExtractError<LE, RE>>;
|
type Output = Result<Either<L, R>, EitherExtractError<LE, RE>>;
|
||||||
|
|
||||||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||||
let mut this = self.project();
|
let mut this = self.project();
|
||||||
|
|
Loading…
Reference in New Issue