From: 志宇 Date: Mon, 6 May 2024 09:52:11 +0000 (+0800) Subject: chore(chain): update test so clippy does not complain X-Git-Tag: v1.0.0-alpha.11~2^2~4 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.FileStoreError.html?a=commitdiff_plain;h=537aa03ae0f8bec4dc799d33738e9bb7977bdac1;p=bdk chore(chain): update test so clippy does not complain --- diff --git a/crates/chain/src/spk_iter.rs b/crates/chain/src/spk_iter.rs index c007466a..d3a37279 100644 --- a/crates/chain/src/spk_iter.rs +++ b/crates/chain/src/spk_iter.rs @@ -258,18 +258,10 @@ mod test { None ); } +} - // The following dummy traits were created to test if SpkIterator is working properly. - #[allow(unused)] - trait TestSendStatic: Send + 'static { - fn test(&self) -> u32 { - 20 - } - } - - impl TestSendStatic for SpkIterator> { - fn test(&self) -> u32 { - 20 - } - } +#[test] +fn spk_iterator_is_send_and_static() { + fn is_send_and_static() {} + is_send_and_static::>>() }