use take and remove Copy

pull/385/head
yjhmelody 5 years ago
parent fb78ed1812
commit 7cfec4e8ce

@ -54,7 +54,7 @@ where
}
Poll::Pending
}
None => Poll::Ready(*this.min),
None => Poll::Ready(this.min.take()),
}
}
}

@ -633,6 +633,7 @@ extension_trait! {
) -> impl Future<Output = Option<Self::Item>> [MinByKeyFuture<Self, Self::Item, K>]
where
Self: Sized,
Self::Item: Ord,
K: FnMut(&Self::Item) -> Self::Item,
{
MinByKeyFuture::new(self, key_by)

Loading…
Cancel
Save