hir: Fix warnings about clippy str_to_string
rule
This commit is contained in:
parent
d580b2c7bc
commit
eba1b13295
@ -1933,7 +1933,7 @@ impl Function {
|
|||||||
};
|
};
|
||||||
let (result, output) = interpret_mir(db, body, false, None);
|
let (result, output) = interpret_mir(db, body, false, None);
|
||||||
let mut text = match result {
|
let mut text = match result {
|
||||||
Ok(_) => "pass".to_string(),
|
Ok(_) => "pass".to_owned(),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
let mut r = String::new();
|
let mut r = String::new();
|
||||||
_ = e.pretty_print(&mut r, db, &span_formatter);
|
_ = e.pretty_print(&mut r, db, &span_formatter);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user