don't include str 'packet' in packet debug output
This commit is contained in:
		
							parent
							
								
									cfe193cadf
								
							
						
					
					
						commit
						fd48c896f1
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user