]> git.ipfire.org Git - thirdparty/suricata.git/commit
dcerpc/tcp: fix compile warning
authorVictor Julien <victor@inliniac.net>
Fri, 23 Oct 2020 05:45:50 +0000 (07:45 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Nov 2020 15:30:30 +0000 (16:30 +0100)
commitf31372ad1d2bd1fd8602c133ec686c5d1e91ff3a
tree7f2323717c901b39d2599682f263525004d21732
parent67b5295bbc54abf16609fff355cf289c431ab1be
dcerpc/tcp: fix compile warning

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1036:42
     |
1036 |                     let tx = if let Some(mut tx) = self.get_tx_by_call_id(current_call_id, core::STREAM_TOCLIENT) {
     |                                          ----^^
     |                                          |
     |                                          help: remove this `mut`
     |
     = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
    --> src/dcerpc/dcerpc.rs:1061:30
     |
1061 |                         Some(mut tx) => {
     |                              ----^^
     |                              |
     |                              help: remove this `mut`
rust/src/dcerpc/dcerpc.rs