1
Fork 0

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 { if !INCLUDE_COVERAGE_STATEMENTS {
continue; continue;
} }
format!("unreachable") String::from("unreachable")
} }
}, },
_ => format!("{:?}", statement), _ => format!("{:?}", statement),