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::>>() }