]> git.ipfire.org Git - people/ms/suricata.git/commit
rust(lint): use let for binding single value
authorSam Muhammed <ghostinthehive.vx@gmail.com>
Sun, 24 Oct 2021 03:36:11 +0000 (05:36 +0200)
committerVictor Julien <victor@inliniac.net>
Sun, 31 Oct 2021 13:51:58 +0000 (14:51 +0100)
commitda0a976e23385b5a575daa285627ee0521736405
treefbedf29ebf5c560c308aa4e88322e451f16094e4
parent42d4eb6943727f7b4480a45e651acbf258aa87cf
rust(lint): use let for binding single value

`match` is better used with binding to multiple variables,
for binding to a single value, `let` statement is recommended.

Bug: #4616
rust/src/lib.rs
rust/src/smb/smb1.rs
rust/src/smb/smb2.rs
rust/src/smb/smb2_ioctl.rs