From 3e233033c44243974ec026659a040424dad75662 Mon Sep 17 00:00:00 2001 From: mxndt Date: Sat, 28 May 2022 10:20:41 -0500 Subject: [PATCH] fix two 'useless use of `format!` errors that occured during `make all` --- macros/src/actix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/src/actix.rs b/macros/src/actix.rs index 9a3704bb0..0be04752b 100644 --- a/macros/src/actix.rs +++ b/macros/src/actix.rs @@ -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(); } @@ -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(); }