Remove redundant format!s

This commit is contained in:
Nixon Enraght-Moony 2022-04-21 16:46:03 +01:00
parent 1dec35a1b0
commit 8fa20e01a5
3 changed files with 5 additions and 5 deletions

View file

@ -1014,7 +1014,7 @@ impl<'a> Resolver<'a> {
}
ResolutionError::InvalidAsmSym => {
let mut err = self.session.struct_span_err(span, "invalid `sym` operand");
err.span_label(span, &format!("is a local variable"));
err.span_label(span, "is a local variable");
err.help("`sym` operands must refer to either a function or a static");
err
}