mirror of https://github.com/OISF/suricata
rust/dcerpc: fix single_match clippy warning
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> src/dcerpc/log.rs:36:33 | 36 | DCERPC_TYPE_BIND => match &state.bind { | _________________________________^ 37 | | Some(bind) => { 38 | | jsb.open_array("interfaces")?; 39 | | for uuid in &bind.uuid_list { ... | 51 | | None => {} 52 | | }, | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `#[warn(clippy::single_match)]` on by defaultpull/11755/head
parent
89d229c76f
commit
2a984e3b13
Loading…
Reference in New Issue