Skip to content

Commit

Permalink
fix two 'useless use of format! errors that occured during make all
Browse files Browse the repository at this point in the history
  • Loading branch information
mxndtaylor authored and tiagolobocastro committed Jun 4, 2022
1 parent 95a25f2 commit 3e23303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ pub fn emit_v2_header(input: TokenStream) -> TokenStream {
Data::Enum(_) | Data::Union(_) => {
emit_error!(
item_ast.span(),
format!("Invalid data type. Apiv2Header should be defined on a struct")
"Invalid data type. Apiv2Header should be defined on a struct"
);
return quote!().into();
}
Expand All @@ -1218,7 +1218,7 @@ pub fn emit_v2_header(input: TokenStream) -> TokenStream {
{
emit_error!(
item_ast.span(),
format!("Invalid openapi attribute. openapi attribute should be defined at struct fields level")
"Invalid openapi attribute. openapi attribute should be defined at struct fields level"
);
return quote!().into();
}
Expand Down

0 comments on commit 3e23303

Please sign in to comment.