Skip to content

Commit

Permalink
Fixed debug derive generated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Oct 16, 2018
1 parent bc3aa90 commit b25d004
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub fn derive(input: &ast::Input) -> proc_macro2::TokenStream {
});

let builder = if let Some(ref name) = bi.field.ident {
let name = name.to_string();
quote! {
#dummy_debug
let _ = builder.field(#name, &#arg);
Expand Down

0 comments on commit b25d004

Please sign in to comment.