From efb952d4a86378397b698e2cf5897cd6cea58b7c Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 8 Nov 2019 22:26:03 -0800 Subject: [PATCH] lets impl these too till const generics actually exist --- psopacket/src/lib.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/psopacket/src/lib.rs b/psopacket/src/lib.rs index 03730b5..60c7459 100644 --- a/psopacket/src/lib.rs +++ b/psopacket/src/lib.rs @@ -421,6 +421,14 @@ pub fn pso_packet_data(input: TokenStream) -> TokenStream { } }; + let partialeq = generate_partialeq_impl(name.clone(), &attrs); + let debug = generate_debug_impl(name, &attrs); - impl_pso_data_packet.into() + let q = quote! { + #impl_pso_data_packet + #partialeq + #debug + }; + + q.into() }