mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
parser: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
edda6b8a1f
commit
f474bd77be
2 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ impl<'a> Converter<'a> {
|
|||
|
||||
if let Some(err) = err {
|
||||
let token = self.res.len() as u32;
|
||||
let msg = err.to_string();
|
||||
let msg = err.to_owned();
|
||||
self.res.error.push(LexError { msg, token });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue