chore(chain): update test so clippy does not complain
This commit is contained in:
parent
ed117de7a5
commit
537aa03ae0
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user