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
);
}
// 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<Descriptor<DescriptorPublicKey>> {
fn test(&self) -> u32 {
20
}
}
}
#[test]
fn spk_iterator_is_send_and_static() {
fn is_send_and_static<A: Send + 'static>() {}
is_send_and_static::<SpkIterator<Descriptor<DescriptorPublicKey>>>()
}