From e762c53725f1555cb9d611ba894791ed3f6d094e Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Sat, 13 Jan 2024 15:20:49 +0000 Subject: [PATCH] fix nightly clippy issues --- bitcoin/src/bip158.rs | 4 ++-- bitcoin/src/lib.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/bip158.rs b/bitcoin/src/bip158.rs index 57b2f4d3..7ada3c3f 100644 --- a/bitcoin/src/bip158.rs +++ b/bitcoin/src/bip158.rs @@ -668,14 +668,14 @@ mod test { let bytes = out; { - let query = vec![hex!("abcdef"), hex!("eeeeee")]; + let query = [hex!("abcdef"), hex!("eeeeee")]; let reader = GcsFilterReader::new(0, 0, M, P); assert!(reader .match_any(&mut bytes.as_slice(), &mut query.iter().map(|v| v.as_slice())) .unwrap()); } { - let query = vec![hex!("abcdef"), hex!("123456")]; + let query = [hex!("abcdef"), hex!("123456")]; let reader = GcsFilterReader::new(0, 0, M, P); assert!(!reader .match_any(&mut bytes.as_slice(), &mut query.iter().map(|v| v.as_slice())) diff --git a/bitcoin/src/lib.rs b/bitcoin/src/lib.rs index f92e8b93..f09ff75d 100644 --- a/bitcoin/src/lib.rs +++ b/bitcoin/src/lib.rs @@ -40,6 +40,7 @@ #![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134 #![allow(clippy::uninhabited_references)] // falsely claims that 100% safe code is UB #![allow(clippy::manual_range_contains)] // more readable than clippy's format +#![allow(clippy::unconditional_recursion)] // broken; see https://github.com/rust-lang/rust-clippy/issues/12133 // Disable 16-bit support at least for now as we can't guarantee it yet. #[cfg(target_pointer_width = "16")]