Skip to content

Commit

Permalink
Fix Display macro in no_std apps (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani authored Feb 8, 2025
1 parent 043dc12 commit b7c31f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strum_macros/src/macros/strings/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn display_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {

quote! {
#[allow(unused_variables)]
#name::#ident #params => ::core::fmt::Display::fmt(&format!(#output, #args), f)
#name::#ident #params => ::core::fmt::Display::fmt(&format_args!(#output, #args), f)
}
}
},
Expand Down

0 comments on commit b7c31f5

Please # to comment.