Adapt to a new rowan borrowing node API.

This commit is contained in:
Dawer 2021-05-06 10:06:52 +05:00
parent 52143f389f
commit dc4fa504ea
2 changed files with 2 additions and 2 deletions

View file

@ -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 {