Skip to content

Commit e2a511f

Browse files
committed
use String::from instead of format!() macro to craft string clippy::useless_format
1 parent a18b34d commit e2a511f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_mir/src/transform/instrument_coverage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl<'a, 'tcx> Instrumentor<'a, 'tcx> {
353353
if !INCLUDE_COVERAGE_STATEMENTS {
354354
continue;
355355
}
356-
format!("unreachable")
356+
String::from("unreachable")
357357
}
358358
},
359359
_ => format!("{:?}", statement),

0 commit comments

Comments
 (0)