diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 15:09:36 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 15:09:36 +0200 |
commit | df47e8c08f06f79ab13ceea435044c37e40000d1 (patch) | |
tree | 61b4fdf8021a6c918ad79c00a1a35914edee86f4 /openpgp | |
parent | d4e5e6c48aadd01fc3a96917f36d3ec9649639b6 (diff) |
openpgp: Do not expose parse::map::Iter.
Diffstat (limited to 'openpgp')
-rw-r--r-- | openpgp/src/parse/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/parse/map.rs b/openpgp/src/parse/map.rs index c97569a9..2736e790 100644 --- a/openpgp/src/parse/map.rs +++ b/openpgp/src/parse/map.rs @@ -76,7 +76,7 @@ impl Map { /// # Ok(()) /// # } /// ``` - pub fn iter<'a>(&'a self) -> Iter<'a> { + pub fn iter<'a>(&'a self) -> impl Iterator<Item = Field<'a>> { Iter::new(self) } } @@ -131,7 +131,7 @@ impl<'a> Field<'a> { } /// An iterator over the map. -pub struct Iter<'a> { +struct Iter<'a> { map: &'a Map, i: usize, } |