ide: Fix warnings about clippy str_to_string rule

This commit is contained in:
Tetsuharu Ohzeki 2024-02-10 00:26:18 +09:00
parent bb0de88f24
commit 8c2f301a41
17 changed files with 38 additions and 41 deletions

View file

@ -55,7 +55,7 @@ fn syntax_tree_for_string(token: &SyntaxToken, text_range: TextRange) -> Option<
fn syntax_tree_for_token(node: &SyntaxToken, text_range: TextRange) -> Option<String> {
// Range of the full node
let node_range = node.text_range();
let text = node.text().to_string();
let text = node.text().to_owned();
// We start at some point inside the node
// Either we have selected the whole string