Skip to content

Commit 5f0b775

Browse files
hameerabbasilcnr
andauthored
Remove redundant &format!.
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
1 parent 7d5db23 commit 5f0b775

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: compiler/rustc_resolve/src/diagnostics.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,7 @@ impl<'a> Resolver<'a> {
480480
);
481481

482482
if is_type {
483-
err.note(&format!(
484-
"type parameters are currently not permitted in anonymous constants"
485-
));
483+
err.note("type parameters are currently not permitted in anonymous constants");
486484
} else {
487485
err.help(
488486
&format!("it is currently only allowed to use either `{0}` or `{{ {0} }}` as generic constants",

0 commit comments

Comments
 (0)