Remove redundant &format!.

Co-authored-by: Bastian Kauschke <bastian_kauschke@hotmail.de>
This commit is contained in:
Hameer Abbasi 2020-09-15 11:11:18 +02:00 committed by GitHub
parent 7d5db239e7
commit 5f0b775390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",