mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
hir: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
d580b2c7bc
commit
eba1b13295
1 changed files with 1 additions and 1 deletions
|
@ -1933,7 +1933,7 @@ impl Function {
|
|||
};
|
||||
let (result, output) = interpret_mir(db, body, false, None);
|
||||
let mut text = match result {
|
||||
Ok(_) => "pass".to_string(),
|
||||
Ok(_) => "pass".to_owned(),
|
||||
Err(e) => {
|
||||
let mut r = String::new();
|
||||
_ = e.pretty_print(&mut r, db, &span_formatter);
|
||||
|
|
Loading…
Reference in a new issue