remove more redundant clones (clippy::redundant_clone())

This commit is contained in:
Matthias Krüger 2021-03-21 12:05:08 +01:00
parent 0d40ff5e62
commit 3d9b3a8575
5 changed files with 6 additions and 7 deletions

View file

@ -532,7 +532,7 @@ fn ast_from_text<N: AstNode>(text: &str) -> N {
}
fn unroot(n: SyntaxNode) -> SyntaxNode {
SyntaxNode::new_root(n.green().to_owned())
SyntaxNode::new_root(n.green())
}
pub mod tokens {