Skip to content

Commit b7c31f5

Browse files
authored
Fix Display macro in no_std apps (#407)
1 parent 043dc12 commit b7c31f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strum_macros/src/macros/strings/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub fn display_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
9494

9595
quote! {
9696
#[allow(unused_variables)]
97-
#name::#ident #params => ::core::fmt::Display::fmt(&format!(#output, #args), f)
97+
#name::#ident #params => ::core::fmt::Display::fmt(&format_args!(#output, #args), f)
9898
}
9999
}
100100
},

0 commit comments

Comments
 (0)