From: Jason Ish Date: Wed, 5 Oct 2022 15:30:54 +0000 (-0600) Subject: rust: clippy fix for bitwise or with 0 X-Git-Tag: suricata-7.0.0-beta1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db85d6f8976ccc3c9c354904049954d7d9883cf;p=thirdparty%2Fsuricata.git rust: clippy fix for bitwise or with 0 --- diff --git a/rust/src/nfs/nfs4_records.rs b/rust/src/nfs/nfs4_records.rs index e06fb51d5d..9d316492dd 100644 --- a/rust/src/nfs/nfs4_records.rs +++ b/rust/src/nfs/nfs4_records.rs @@ -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() {