diff options
author | Dawer <[email protected]> | 2021-05-06 06:06:52 +0100 |
---|---|---|
committer | Dawer <[email protected]> | 2021-05-06 06:06:52 +0100 |
commit | dc4fa504ea2723bd5083284cabf81b4c5806ed4b (patch) | |
tree | 2ed3a29ccb2c6fc4aabdcca35fa93f9df9291c2b /crates/syntax/src/ast | |
parent | 52143f389fa49e1601fbc2c6cb526e4e9d1f113e (diff) |
Adapt to a new rowan borrowing node API.
Diffstat (limited to 'crates/syntax/src/ast')
-rw-r--r-- | crates/syntax/src/ast/make.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs index 42da09606..4bcea28cc 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs | |||
@@ -572,7 +572,7 @@ fn ast_from_text<N: AstNode>(text: &str) -> N { | |||
572 | } | 572 | } |
573 | 573 | ||
574 | fn unroot(n: SyntaxNode) -> SyntaxNode { | 574 | fn unroot(n: SyntaxNode) -> SyntaxNode { |
575 | SyntaxNode::new_root(n.green()) | 575 | SyntaxNode::new_root(n.green().into()) |
576 | } | 576 | } |
577 | 577 | ||
578 | pub mod tokens { | 578 | pub mod tokens { |