avoid &format
in error message code
This commit is contained in:
parent
0c2c243342
commit
c8960622a2
4 changed files with 7 additions and 9 deletions
|
@ -200,7 +200,7 @@ impl<'parent, 'a> SubdiagnosticDeriveVariantBuilder<'parent, 'a> {
|
|||
|
||||
throw_span_err!(
|
||||
attr.span().unwrap(),
|
||||
&format!(
|
||||
format!(
|
||||
"diagnostic slug must be first argument of a `#[{name}(...)]` attribute"
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue