Skip to content

Commit

Permalink
Fixed Debug derived code.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Oct 16, 2018
1 parent 68802fb commit db28117
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ pub fn derive(input: &ast::Input) -> proc_macro2::TokenStream {
#(#field_prints)*
}
} else {
let name = arm_name.to_string();
quote! {
let mut builder = __f.#method(#arm_name);
let mut builder = __f.#method(#name);
#(#field_prints)*
builder.finish()
}
Expand Down

0 comments on commit db28117

Please sign in to comment.