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
@@ -353,7 +353,7 @@ fn make_tooltip_text(&self, coverage_region: &CoverageRegion) -> String {
if !INCLUDE_COVERAGE_STATEMENTS {
continue;
}
format!("unreachable")
String::from("unreachable")
}
},
_ => format!("{:?}", statement),