forked from mirror/async-std
change trait bounds
This commit is contained in:
parent
48c82a9668
commit
07d21e5eb3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue