|
@ -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, "}}")
|
|
|
}
|
|
|
}
|
|
|