From: Victor Julien Date: Sun, 15 Oct 2017 19:18:22 +0000 (+0200) Subject: rust/dns: fix new warning in rustc 1.21 X-Git-Tag: suricata-4.0.1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e023ce9aad8fda293440fce1aeff31dcc72b5425;p=thirdparty%2Fsuricata.git rust/dns: fix new warning in rustc 1.21 --- diff --git a/rust/src/dns/dns.rs b/rust/src/dns/dns.rs index b599eda54f..5c9e1ade9e 100644 --- a/rust/src/dns/dns.rs +++ b/rust/src/dns/dns.rs @@ -352,7 +352,7 @@ impl DNSState { return; } - let mut tx = &mut self.transactions[len - 1]; + let tx = &mut self.transactions[len - 1]; core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events, event as u8); self.events += 1;