Apply suggestions from code review

Co-Authored-By: Yoshua Wuyts <yoshuawuyts+github@gmail.com>
This commit is contained in:
Fedor Sakharov 2019-09-10 15:01:25 +03:00 committed by GitHub
parent 55bdea4649
commit 9b381e427f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,6 @@ pub trait Stream {
/// Basic usage:
///
/// ```
///
/// # fn main() { async_std::task::block_on(async {
/// #
/// use std::collections::VecDeque;
@ -158,7 +157,6 @@ pub trait Stream {
///
/// let end = parsed.next().await;
/// assert_eq!(end, None);
///
/// #
/// # }) }
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F, Self::Item, B>