forked from mirror/async-std
fmt code
This commit is contained in:
parent
17db7ffcd3
commit
204da33391
1 changed files with 13 additions and 10 deletions
|
@ -22,8 +22,8 @@ pin_project! {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<L: Stream, R: Stream> NeFuture<L, R>
|
impl<L: Stream, R: Stream> NeFuture<L, R>
|
||||||
where
|
where
|
||||||
L::Item: PartialEq<R::Item>,
|
L::Item: PartialEq<R::Item>,
|
||||||
{
|
{
|
||||||
pub(super) fn new(l: L, r: R) -> Self {
|
pub(super) fn new(l: L, r: R) -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
@ -34,10 +34,10 @@ impl<L: Stream, R: Stream> NeFuture<L, R>
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<L: Stream, R: Stream> Future for NeFuture<L, R>
|
impl<L: Stream, R: Stream> Future for NeFuture<L, R>
|
||||||
where
|
where
|
||||||
L: Stream + Sized,
|
L: Stream + Sized,
|
||||||
R: Stream + Sized,
|
R: Stream + Sized,
|
||||||
L::Item: PartialEq<R::Item>,
|
L::Item: PartialEq<R::Item>,
|
||||||
{
|
{
|
||||||
type Output = bool;
|
type Output = bool;
|
||||||
|
|
||||||
|
@ -53,10 +53,13 @@ impl<L: Stream, R: Stream> Future for NeFuture<L, R>
|
||||||
}
|
}
|
||||||
|
|
||||||
match (l_val, r_val) {
|
match (l_val, r_val) {
|
||||||
(Some(l), Some(r)) if l == r => {continue;},
|
(Some(l), Some(r)) if l == r => {
|
||||||
_ => { return Poll::Ready(true); },
|
continue;
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
return Poll::Ready(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue