4701: Simplify r=kjeremy a=Veetaha



Co-authored-by: veetaha <veetaha2@gmail.com>
This commit is contained in:
bors[bot] 2020-06-02 01:19:58 +00:00 committed by GitHub
commit 21132a7a74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ impl<N> AstChildren<N> {
impl<N: AstNode> Iterator for AstChildren<N> { impl<N: AstNode> Iterator for AstChildren<N> {
type Item = N; type Item = N;
fn next(&mut self) -> Option<N> { fn next(&mut self) -> Option<N> {
self.inner.by_ref().find_map(N::cast) self.inner.find_map(N::cast)
} }
} }