From fd38e5e82b1a0e3edcca227b3f1736e34c492ced Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 15 Oct 2017 21:16:56 +0200 Subject: [PATCH] rust/nfs: fix new warnings in rustc 1.21 --- rust/src/nfs/nfs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;