]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix for loop over option 8376/head
authorJason Ish <jason.ish@oisf.net>
Fri, 13 Jan 2023 20:04:52 +0000 (14:04 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 13 Jan 2023 20:04:52 +0000 (14:04 -0600)
commit6b6709c9d95daa43104a58921f37a38b8e9501c9
tree855d2bb27cad7a6192050bc99eb95e184755a3af
parent462366d447bc32c91740a1c72034a0f9516b33d6
rust: fix for loop over option

As of Rust 1.66 with strict mode enabled, a for loop over an option is
now an error. Replace the last occurrence of this pattern with an "if
let" statement.
rust/src/log.rs