diff options
Diffstat (limited to 'openpgp/src/cert/mod.rs')
-rw-r--r-- | openpgp/src/cert/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index b3f9d8de..243cd1e3 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -1300,7 +1300,7 @@ impl Cert { /// # } /// ``` pub fn from_packets(p: impl Iterator<Item=Packet>) -> Result<Self> { - let mut i = parser::CertParser::from_iter(p); + let mut i = parser::CertParser::from_iter(p.map(|p| Ok(p))); match i.next() { Some(Ok(cert)) => Ok(cert), Some(Err(err)) => Err(err), |