mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-12-23 08:48:08 +00:00
clippy
This commit is contained in:
parent
2dcbfefb03
commit
2127dbba92
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ fn edit_struct_def(
|
|||
.prev_token()
|
||||
.filter(|tok| tok.kind() == SyntaxKind::WHITESPACE)
|
||||
.map(|tok| {
|
||||
let text = tok.text().to_string();
|
||||
let text = tok.text().to_owned();
|
||||
edit.delete(tok.text_range());
|
||||
text
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue