use String::from instead of format!() macro to craft string clippy::useless_format
This commit is contained in:
parent
a18b34d979
commit
e2a511fe20
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
|
|||
if !INCLUDE_COVERAGE_STATEMENTS {
|
||||
continue;
|
||||
}
|
||||
format!("unreachable")
|
||||
String::from("unreachable")
|
||||
}
|
||||
},
|
||||
_ => format!("{:?}", statement),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue