From 0e8a248b990ed0e884383d336f9ad8305c6d116a Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 21 Jun 2021 14:00:45 -0600 Subject: [PATCH] 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. --- rust/src/applayertemplate/template.rs | 1 + 1 file changed, 1 insertion(+) 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, } -- 2.47.2