Remove redundant &format!
.
Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
This commit is contained in:
parent
7d5db239e7
commit
5f0b775390
1 changed files with 1 additions and 3 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue