From: Jason Ish Date: Mon, 21 Jun 2021 20:00:45 +0000 (-0600) Subject: rust/template: suppress unread variable warning X-Git-Tag: suricata-6.0.3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e8a248b990ed0e884383d336f9ad8305c6d116a;p=thirdparty%2Fsuricata.git rust/template: suppress unread variable warning Suppress the warning about an unused variable in the template parser. As this is just a template I think this is OK, however master should make sure this variable is used, if only to be more self documenting. --- diff --git a/rust/src/applayertemplate/template.rs b/rust/src/applayertemplate/template.rs index c82e49bf05..833d00c8e4 100644 --- a/rust/src/applayertemplate/template.rs +++ b/rust/src/applayertemplate/template.rs @@ -67,6 +67,7 @@ pub struct TemplateState { tx_id: u64, transactions: Vec, request_gap: bool, + #[allow(dead_code)] response_gap: bool, }