From 2a82a8d796caa1fec466c7e9d8b7f4868a7665a5 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 8 Dec 2020 16:51:14 +0100 Subject: openpgp: Make cert::IntoIter Send + Sync. - See #615. --- openpgp/src/cert.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 for Vec { /// [`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>); +pub struct IntoIter(Box + Send + Sync>); +assert_send_and_sync!(IntoIter); impl Iterator for IntoIter { type Item = Packet; -- cgit v1.2.3