Skip to content

Commit

Permalink
chore(chain): update test so clippy does not complain
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlinjin committed May 6, 2024
1 parent 16366b4 commit 155e2e5
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions crates/chain/src/spk_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,17 +258,10 @@ mod test {
None
);
}
}

// The following dummy traits were created to test if SpkIterator is working properly.
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>>>()
}

0 comments on commit 155e2e5

Please sign in to comment.