Skip to content

Commit

Permalink
Remove redundant &format!.
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
  • Loading branch information
hameerabbasi and lcnr authored Sep 15, 2020
1 parent 7d5db23 commit 5f0b775
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions compiler/rustc_resolve/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,7 @@ impl<'a> Resolver<'a> {
);

if is_type {
err.note(&format!(
"type parameters are currently not permitted in anonymous constants"
));
err.note("type parameters are currently not permitted in anonymous constants");
} else {
err.help(
&format!("it is currently only allowed to use either `{0}` or `{{ {0} }}` as generic constants",
Expand Down

0 comments on commit 5f0b775

Please sign in to comment.