mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-23 18:42:59 +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
|
@ -28,7 +28,7 @@ pub(crate) fn build_tree(
|
|||
parser::StrStep::Enter { kind } => builder.start_node(kind),
|
||||
parser::StrStep::Exit => builder.finish_node(),
|
||||
parser::StrStep::Error { msg, pos } => {
|
||||
builder.error(msg.to_string(), pos.try_into().unwrap())
|
||||
builder.error(msg.to_owned(), pos.try_into().unwrap())
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue