Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy::redundant_closure_for_method_calls
warning: redundant closure --> src/lib.rs:768:38 | 768 | self.inner.as_mut().and_then(|c| c.next()) | ^^^^^^^^^^^^ help: replace the closure with the method itself: `std::iter::Iterator::next` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls warning: redundant closure --> src/lib.rs:773:35 | 773 | .map_or((0, Some(0)), |ch| ch.size_hint()) | ^^^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `std::iter::Iterator::size_hint` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls warning: redundant closure --> src/lib.rs:779:38 | 779 | self.inner.as_mut().and_then(|c| c.next_back()) | ^^^^^^^^^^^^^^^^^ help: replace the closure with the method itself: `std::iter::DoubleEndedIterator::next_back` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_for_method_calls
- Loading branch information