]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust/dns: fix new warning in rustc 1.21 2937/head
authorVictor Julien <victor@inliniac.net>
Sun, 15 Oct 2017 19:18:22 +0000 (21:18 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 15 Oct 2017 19:18:22 +0000 (21:18 +0200)
rust/src/dns/dns.rs

index b599eda54f339e59b6695767c058c3d7503c4653..5c9e1ade9e2df9fc3e6d1e71f2ec61a0063f1cbe 100644 (file)
@@ -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;