]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust: clippy fix for bitwise or with 0
authorJason Ish <jason.ish@oisf.net>
Wed, 5 Oct 2022 15:30:54 +0000 (09:30 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Oct 2022 09:20:09 +0000 (11:20 +0200)
rust/src/nfs/nfs4_records.rs

index e06fb51d5d98e395e19a66151741904b99e0bcea..9d316492dd76563007e5af144c3fba5dc0271778 100644 (file)
@@ -1646,7 +1646,7 @@ mod tests {
         let (r, attr) = nfs4_parse_attrbits(&buf[4..]).unwrap();
         assert_eq!(r.len(), 0);
         // assert_eq!(attr.attr_mask, 35618163785728);
-        assert_eq!(attr.attr_mask, (0x00002065_u64 << 32 | 0_u64));
+        assert_eq!(attr.attr_mask, 0x00002065_u64 << 32);
     }
     #[test]
     fn test_nfs4_response_compound() {