Update src/stream/stream/min_by_key.rs

Co-Authored-By: Taiki Endo <te316e89@gmail.com>
This commit is contained in:
yjh 2019-10-27 00:18:18 +08:00 committed by GitHub
parent c9e6d3a84c
commit 5a4fdeb1cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ impl<S, T, K> MinByKeyFuture<S, T, K> {
impl<S, K> Future for MinByKeyFuture<S, S::Item, K> impl<S, K> Future for MinByKeyFuture<S, S::Item, K>
where where
S: Stream + Unpin + Sized, S: Stream,
K: FnMut(&S::Item) -> S::Item, K: FnMut(&S::Item) -> S::Item,
S::Item: Ord + Copy, S::Item: Ord + Copy,
{ {