Update src/stream/stream/max_by.rs

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

View file

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