From 7ae27273b42a223d0ecd623faa562f72002bdb90 Mon Sep 17 00:00:00 2001 From: Jake Probst Date: Tue, 16 Jul 2019 13:44:53 -0700 Subject: [PATCH] cloning packets is helpful --- psopacket/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/psopacket/src/lib.rs b/psopacket/src/lib.rs index c3dca3f..cb0a04d 100644 --- a/psopacket/src/lib.rs +++ b/psopacket/src/lib.rs @@ -1,4 +1,4 @@ -#![recursion_limit="128"] +#![recursion_limit="256"] extern crate proc_macro; @@ -276,6 +276,7 @@ pub fn pso_packet(attr: TokenStream, item: TokenStream) -> TokenStream { }; let q = quote! { + #[derive(Clone)] #parsed #psopacket #psopacket_debug