diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 16:51:14 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 16:51:14 +0100 |
commit | 2a82a8d796caa1fec466c7e9d8b7f4868a7665a5 (patch) | |
tree | 719c8a9944219a046b47ad60c8a51076d2e10d74 /openpgp/src/cert.rs | |
parent | 906a248f2a538650db0c41ec180c0ba4b1568ba6 (diff) |
openpgp: Make cert::IntoIter Send + Sync.
- See #615.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 3 |
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; |