use String::from instead of format!() macro to craft string clippy::useless_format
This commit is contained in:
parent
a18b34d979
commit
e2a511fe20
@ -353,7 +353,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
|
||||
if !INCLUDE_COVERAGE_STATEMENTS {
|
||||
continue;
|
||||
}
|
||||
format!("unreachable")
|
||||
String::from("unreachable")
|
||||
}
|
||||
},
|
||||
_ => format!("{:?}", statement),
|
||||
|
Loading…
Reference in New Issue
Block a user