From fd48c896f137a38bca529d3b7bcfe0062bcf9f12 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 26 Jan 2020 21:07:36 -0800 Subject: [PATCH] don't include str 'packet' in packet debug output --- psopacket/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psopacket/src/lib.rs b/psopacket/src/lib.rs index 08b3b6c..9e8df70 100644 --- a/psopacket/src/lib.rs +++ b/psopacket/src/lib.rs @@ -249,7 +249,7 @@ fn generate_debug_impl(name: syn::Ident, attrs: &Vec) -> proc_macro2:: quote! { impl std::fmt::Debug for #name { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - write!(f, "packet {} {{\n", #name_str)?; + write!(f, "{} {{\n", #name_str)?; #(#dbg_write)* write!(f, "}}") }