mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
⬆️ rowan
This commit is contained in:
parent
545c21923e
commit
83a8430e0a
4 changed files with 21 additions and 22 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue