Browse Source

don't include str 'packet' in packet debug output

pull/3/head
jake 5 years ago
parent
commit
fd48c896f1
  1. 2
      psopacket/src/lib.rs

2
psopacket/src/lib.rs

@ -249,7 +249,7 @@ fn generate_debug_impl(name: syn::Ident, attrs: &Vec<AttrType>) -> proc_macro2::
quote! { quote! {
impl std::fmt::Debug for #name { impl std::fmt::Debug for #name {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "packet {} {{\n", #name_str)?;
write!(f, "{} {{\n", #name_str)?;
#(#dbg_write)* #(#dbg_write)*
write!(f, "}}") write!(f, "}}")
} }

Loading…
Cancel
Save