chore(chain): update test so clippy does not complain

This commit is contained in:
志宇 2024-05-06 17:52:11 +08:00 committed by Daniela Brozzoni
parent ed117de7a5
commit 537aa03ae0
No known key found for this signature in database
GPG Key ID: 7DE4F1FDCED0AB87

View File

@ -258,18 +258,10 @@ mod test {
None None
); );
} }
}
// The following dummy traits were created to test if SpkIterator is working properly.
#[allow(unused)] #[test]
trait TestSendStatic: Send + 'static { fn spk_iterator_is_send_and_static() {
fn test(&self) -> u32 { fn is_send_and_static<A: Send + 'static>() {}
20 is_send_and_static::<SpkIterator<Descriptor<DescriptorPublicKey>>>()
}
}
impl TestSendStatic for SpkIterator<Descriptor<DescriptorPublicKey>> {
fn test(&self) -> u32 {
20
}
}
} }