]> 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)
committerJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2025 21:44:05 +0000 (15:44 -0600)
commitab089b0859d32942cf1646ed2544deb3eb618cae
treea977f0e88816b961b34fb2e6a80c0da0394a9658
parenta40b37ba4452179195f5b710ac99ce9464437cdf
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 | |         }
    | |_________^

(cherry picked from commit 259cdf169e20b580643117b8fa227e470a0377f8)
rust/src/nfs/nfs2_records.rs
rust/src/nfs/nfs3_records.rs