diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 16:50:44 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-12-08 16:50:44 +0100 |
commit | 906a248f2a538650db0c41ec180c0ba4b1568ba6 (patch) | |
tree | a7a94b2ca42bd988af2d577cb88d59578afbd636 /openpgp/src/parse/map.rs | |
parent | e9439f7c4b902265d3f599c224e5e5ac9798014e (diff) |
openpgp: Make unnamed iterators Send + Sync.
- See #615.
Diffstat (limited to 'openpgp/src/parse/map.rs')
-rw-r--r-- | openpgp/src/parse/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/map.rs b/openpgp/src/parse/map.rs index d584b16f..36fb42a9 100644 --- a/openpgp/src/parse/map.rs +++ b/openpgp/src/parse/map.rs @@ -91,7 +91,7 @@ impl Map { /// assert_eq!(map.iter().count(), 6); /// # Ok(()) } /// ``` - pub fn iter<'a>(&'a self) -> impl Iterator<Item = Field<'a>> { + pub fn iter<'a>(&'a self) -> impl Iterator<Item = Field<'a>> + Send + Sync { Iter::new(self) } } |