mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
Adapt to a new rowan borrowing node API.
This commit is contained in:
parent
52143f389f
commit
dc4fa504ea
2 changed files with 2 additions and 2 deletions
|
@ -572,7 +572,7 @@ fn ast_from_text<N: AstNode>(text: &str) -> N {
|
|||
}
|
||||
|
||||
fn unroot(n: SyntaxNode) -> SyntaxNode {
|
||||
SyntaxNode::new_root(n.green())
|
||||
SyntaxNode::new_root(n.green().into())
|
||||
}
|
||||
|
||||
pub mod tokens {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue