summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet_pile.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-12-08 16:50:44 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-12-08 16:50:44 +0100
commit906a248f2a538650db0c41ec180c0ba4b1568ba6 (patch)
treea7a94b2ca42bd988af2d577cb88d59578afbd636 /openpgp/src/packet_pile.rs
parente9439f7c4b902265d3f599c224e5e5ac9798014e (diff)
openpgp: Make unnamed iterators Send + Sync.
- See #615.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r--openpgp/src/packet_pile.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs
index 3d0bbe94..09a432b2 100644
--- a/openpgp/src/packet_pile.rs
+++ b/openpgp/src/packet_pile.rs
@@ -484,7 +484,7 @@ impl PacketPile {
/// # }
/// ```
pub fn children(&self)
- -> impl Iterator<Item=&Packet> + ExactSizeIterator
+ -> impl Iterator<Item=&Packet> + ExactSizeIterator + Send + Sync
{
self.top_level.children().expect("toplevel is a container")
}
@@ -509,7 +509,7 @@ impl PacketPile {
/// # }
/// ```
pub fn into_children(self)
- -> impl Iterator<Item=Packet> + ExactSizeIterator
+ -> impl Iterator<Item=Packet> + ExactSizeIterator + Send + Sync
{
self.top_level.into_children().expect("toplevel is a container")
}