]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/template: suppress unread variable warning 6222/head
authorJason Ish <jason.ish@oisf.net>
Mon, 21 Jun 2021 20:00:45 +0000 (14:00 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 22 Jun 2021 19:38:33 +0000 (13:38 -0600)
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

index c82e49bf05b25e686b72f1f1bdc1a472926b0ecb..833d00c8e49d825716bbb3979621e999cd9ebfe6 100644 (file)
@@ -67,6 +67,7 @@ pub struct TemplateState {
     tx_id: u64,
     transactions: Vec<TemplateTransaction>,
     request_gap: bool,
+    #[allow(dead_code)]
     response_gap: bool,
 }