From: Victor Julien Date: Sun, 15 Oct 2017 19:16:56 +0000 (+0200) Subject: rust/nfs: fix new warnings in rustc 1.21 X-Git-Tag: suricata-4.0.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd38e5e82b1a0e3edcca227b3f1736e34c492ced;p=thirdparty%2Fsuricata.git rust/nfs: fix new warnings in rustc 1.21 --- diff --git a/rust/src/nfs/nfs.rs b/rust/src/nfs/nfs.rs index 71956b650e..60a5107b85 100644 --- a/rust/src/nfs/nfs.rs +++ b/rust/src/nfs/nfs.rs @@ -426,7 +426,7 @@ impl NFSState { return; } - let mut tx = &mut self.transactions[len - 1]; + let tx = &mut self.transactions[len - 1]; sc_app_layer_decoder_events_set_event_raw(&mut tx.events, event as u8); self.events += 1; } @@ -435,7 +435,7 @@ impl NFSState { fn mark_response_tx_done(&mut self, xid: u32, rpc_status: u32, nfs_status: u32, resp_handle: &Vec) { match self.get_tx_by_xid(xid) { - Some(mut mytx) => { + Some(mytx) => { mytx.response_done = true; mytx.rpc_response_status = rpc_status; mytx.nfs_response_status = nfs_status;