change trait bounds

pull/428/head
zhangguyu 5 years ago
parent 48c82a9668
commit 07d21e5eb3

@ -1583,7 +1583,7 @@ extension_trait! {
predicate: P
) -> impl Future<Output = Option<usize>> [PositionFuture<Self, P>]
where
Self: Sized + Stream,
Self: Sized,
P: FnMut(&Self::Item) -> bool,
{
PositionFuture::new(self, predicate)

Loading…
Cancel
Save