diff options
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r-- | openpgp/src/packet_pile.rs | 4 |
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") } |