aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-06-02 02:19:58 +0100
committerGitHub <[email protected]>2020-06-02 02:19:58 +0100
commit21132a7a748a70351f5d1ae6d8c51a3a0065013e (patch)
tree793c40c5f8cdc8c4629b03d8419df5c7cb2357af
parentabf7d1747d9910e7b4e11357ae9bcf5c594f0d55 (diff)
parentfb971c3bce710df234feb313528da81ccd5e26f9 (diff)
Merge #4701
4701: Simplify r=kjeremy a=Veetaha Co-authored-by: veetaha <[email protected]>
-rw-r--r--crates/ra_syntax/src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs
index 1876afe95..eddc807d5 100644
--- a/crates/ra_syntax/src/ast.rs
+++ b/crates/ra_syntax/src/ast.rs
@@ -75,7 +75,7 @@ impl<N> AstChildren<N> {
75impl<N: AstNode> Iterator for AstChildren<N> { 75impl<N: AstNode> Iterator for AstChildren<N> {
76 type Item = N; 76 type Item = N;
77 fn next(&mut self) -> Option<N> { 77 fn next(&mut self) -> Option<N> {
78 self.inner.by_ref().find_map(N::cast) 78 self.inner.find_map(N::cast)
79 } 79 }
80} 80}
81 81