summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
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/types
parente9439f7c4b902265d3f599c224e5e5ac9798014e (diff)
openpgp: Make unnamed iterators Send + Sync.
- See #615.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/bitfield.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/types/bitfield.rs b/openpgp/src/types/bitfield.rs
index d4a896bc..7de2311e 100644
--- a/openpgp/src/types/bitfield.rs
+++ b/openpgp/src/types/bitfield.rs
@@ -11,7 +11,8 @@ impl From<Vec<u8>> for Bitfield {
}
impl Bitfield {
- pub fn iter<'a>(&'a self) -> impl Iterator<Item = usize> + 'a {
+ pub fn iter<'a>(&'a self) -> impl Iterator<Item = usize> + Send + Sync + 'a
+ {
self.raw.iter()
.flat_map(|b| {
(0..8).into_iter().map(move |i| {