use String::from instead of format!() macro to craft string clippy::useless_format

This commit is contained in:
Matthias Krüger 2020-09-10 13:16:35 +02:00
parent a18b34d979
commit e2a511fe20

View File

@ -353,7 +353,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
if !INCLUDE_COVERAGE_STATEMENTS {
continue;
}
format!("unreachable")
String::from("unreachable")
}
},
_ => format!("{:?}", statement),