mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-17 10:18:31 +00:00
Merge #4701
4701: Simplify r=kjeremy a=Veetaha Co-authored-by: veetaha <veetaha2@gmail.com>
This commit is contained in:
commit
21132a7a74
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue