We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb78ed1 commit 7cfec4eCopy full SHA for 7cfec4e
src/stream/stream/min_by_key.rs
@@ -54,7 +54,7 @@ where
54
}
55
Poll::Pending
56
57
- None => Poll::Ready(*this.min),
+ None => Poll::Ready(this.min.take()),
58
59
60
src/stream/stream/mod.rs
@@ -633,6 +633,7 @@ extension_trait! {
633
) -> impl Future<Output = Option<Self::Item>> [MinByKeyFuture<Self, Self::Item, K>]
634
where
635
Self: Sized,
636
+ Self::Item: Ord,
637
K: FnMut(&Self::Item) -> Self::Item,
638
{
639
MinByKeyFuture::new(self, key_by)
0 commit comments