]> git.ipfire.org Git - people/ms/suricata.git/commit
rust(lint): remove manual implement of map method
authorJason Ish <jason.ish@oisf.net>
Fri, 20 Aug 2021 17:41:40 +0000 (11:41 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 23 Aug 2021 08:03:12 +0000 (10:03 +0200)
commit91402f9fbae8b199298a761353eec2389d8f4953
tree0083d2a47f8b942496da82e9278f262c1073f79a
parentb021726a0d3c5b6c3c2726ef61359dca35c37fdf
rust(lint): remove manual implement of map method

Using `if let` expressions in these cases is better expressed
by the map method, and considered idiomatic Rust for this usage.
rust/src/ike/parser.rs
rust/src/rdp/parser.rs