2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-30 09:15:33 +00:00
This commit is contained in:
yjhmelody 2019-10-31 21:16:13 +08:00
parent 17db7ffcd3
commit 204da33391

View file

@ -22,8 +22,8 @@ pin_project! {
}
impl<L: Stream, R: Stream> NeFuture<L, R>
where
L::Item: PartialEq<R::Item>,
where
L::Item: PartialEq<R::Item>,
{
pub(super) fn new(l: L, r: R) -> Self {
Self {
@ -34,10 +34,10 @@ impl<L: Stream, R: Stream> NeFuture<L, R>
}
impl<L: Stream, R: Stream> Future for NeFuture<L, R>
where
L: Stream + Sized,
R: Stream + Sized,
L::Item: PartialEq<R::Item>,
where
L: Stream + Sized,
R: Stream + Sized,
L::Item: PartialEq<R::Item>,
{
type Output = bool;
@ -53,10 +53,13 @@ impl<L: Stream, R: Stream> Future for NeFuture<L, R>
}
match (l_val, r_val) {
(Some(l), Some(r)) if l == r => {continue;},
_ => { return Poll::Ready(true); },
(Some(l), Some(r)) if l == r => {
continue;
}
_ => {
return Poll::Ready(true);
}
}
}
}
}
}