This commit is contained in:
veetaha 2020-06-02 02:50:05 +03:00
parent abf7d1747d
commit fb971c3bce

View file

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