mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-08 09:26:42 +00:00
fix min
This commit is contained in:
parent
b942d0a405
commit
021862dcc8
1 changed files with 3 additions and 4 deletions
|
@ -786,15 +786,14 @@ extension_trait! {
|
||||||
# }) }
|
# }) }
|
||||||
```
|
```
|
||||||
"#]
|
"#]
|
||||||
fn min_by<F>(
|
fn min<F>(
|
||||||
self,
|
self,
|
||||||
compare: F,
|
) -> impl Future<Output = Option<Self::Item>> [MinFuture<Self, F, Self::Item>]
|
||||||
) -> impl Future<Output = Option<Self::Item>> [MinByFuture<Self, F, Self::Item>]
|
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
|
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
|
||||||
{
|
{
|
||||||
MinByFuture::new(self, compare)
|
MinFuture::new(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[doc = r#"
|
#[doc = r#"
|
||||||
|
|
Loading…
Reference in a new issue