Skip to content

Commit 537aa03

Browse files
evanlinjindanielabrozzoni
authored andcommitted
chore(chain): update test so clippy does not complain
1 parent ed117de commit 537aa03

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

crates/chain/src/spk_iter.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -258,18 +258,10 @@ mod test {
258258
None
259259
);
260260
}
261+
}
261262

262-
// The following dummy traits were created to test if SpkIterator is working properly.
263-
#[allow(unused)]
264-
trait TestSendStatic: Send + 'static {
265-
fn test(&self) -> u32 {
266-
20
267-
}
268-
}
269-
270-
impl TestSendStatic for SpkIterator<Descriptor<DescriptorPublicKey>> {
271-
fn test(&self) -> u32 {
272-
20
273-
}
274-
}
263+
#[test]
264+
fn spk_iterator_is_send_and_static() {
265+
fn is_send_and_static<A: Send + 'static>() {}
266+
is_send_and_static::<SpkIterator<Descriptor<DescriptorPublicKey>>>()
275267
}

0 commit comments

Comments
 (0)