]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust: fix single_binding
authorPhilippe Antoine <pantoine@oisf.net>
Sat, 6 Jan 2024 21:15:11 +0000 (22:15 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 15 Jan 2024 16:49:12 +0000 (17:49 +0100)
commit259cdf169e20b580643117b8fa227e470a0377f8
tree2d5269b3381829ec5ae5c02a05244407b31ee909
parentb141eb9f1146bfe44bb9c4db136e27eee55e81a8
rust: fix single_binding

error: this match could be written as a `let` statement
   --> src/nfs/nfs3_records.rs:747:9
    |
747 | /         match result {
748 | |             (r, request) => {
749 | |                 assert_eq!(r.len(), 0);
750 | |                 assert_eq!(request.handle, expected_handle);
751 | |                 assert_eq!(request.name_vec, br#"bln"#);
752 | |             }
753 | |         }
    | |_________^
rust/src/nfs/nfs2_records.rs
rust/src/nfs/nfs3_records.rs