summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openpgp/src/cert.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index a184558e..7acf8e4e 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -2800,7 +2800,8 @@ impl From<Cert> for Vec<Packet> {
/// [`IntoIterator`]: https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html
// We can't use a generic type, and due to the use of closures, we
// can't write down the concrete type. So, just use a Box.
-pub struct IntoIter(Box<dyn Iterator<Item=Packet>>);
+pub struct IntoIter(Box<dyn Iterator<Item=Packet> + Send + Sync>);
+assert_send_and_sync!(IntoIter);
impl Iterator for IntoIter {
type Item = Packet;