fix compilation error

This commit is contained in:
Péter Kardos 2025-07-27 16:58:37 +02:00 committed by Simon Hausmann
parent 64408af083
commit 27a05b135c

View file

@ -827,7 +827,7 @@ impl SyntaxNode {
.find(|n| n.kind() == kind)
.and_then(|x| x.as_token().map(|x| x.text().into()))
}
pub fn descendants(&self) -> impl Iterator<Item = SyntaxNode> {
pub fn descendants(&self) -> impl Iterator<Item = SyntaxNode> + use<'_> {
let source_file = self.source_file.clone();
self.node
.descendants()