mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
remove more redundant clones (clippy::redundant_clone())
This commit is contained in:
parent
0d40ff5e62
commit
3d9b3a8575
5 changed files with 6 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue