avoid &format in error message code
This commit is contained in:
@@ -347,7 +347,7 @@ pub(crate) trait HasFieldMap {
|
||||
None => {
|
||||
span_err(
|
||||
span.unwrap(),
|
||||
&format!("`{field}` doesn't refer to a field on this type"),
|
||||
format!("`{field}` doesn't refer to a field on this type"),
|
||||
)
|
||||
.emit();
|
||||
quote! {
|
||||
|
||||
Reference in New Issue
Block a user