mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
syntax: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
f474bd77be
commit
81c35d1f56
6 changed files with 14 additions and 14 deletions
|
@ -432,7 +432,7 @@ fn api_walkthrough() {
|
|||
WalkEvent::Enter(node) => {
|
||||
let text = match &node {
|
||||
NodeOrToken::Node(it) => it.text().to_string(),
|
||||
NodeOrToken::Token(it) => it.text().to_string(),
|
||||
NodeOrToken::Token(it) => it.text().to_owned(),
|
||||
};
|
||||
format_to!(buf, "{:indent$}{:?} {:?}\n", " ", text, node.kind(), indent = indent);
|
||||
indent += 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue