⬆️ rowan

This commit is contained in:
Aleksey Kladov 2019-11-19 21:13:36 +03:00
parent 545c21923e
commit 83a8430e0a
4 changed files with 21 additions and 22 deletions

View file

@ -32,7 +32,7 @@ impl ast::NameRef {
}
fn text_of_first_token(node: &SyntaxNode) -> &SmolStr {
node.green().children().first().and_then(|it| it.as_token()).unwrap().text()
node.green().children().next().and_then(|it| it.into_token()).unwrap().text()
}
impl ast::Attr {