diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-05-06 13:47:23 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-05-08 08:43:10 +0200 |
commit | 1ec9b4f68be001f93daacc839f53127fde2a2199 (patch) | |
tree | 7c47d2217ca8f1b309fd12524f4a8118bb829781 /openpgp-ffi/src | |
parent | e214ec5a4f1b4081d81544fa0d8dd293447118d4 (diff) |
openpgp: Don't make CertParser generic over the iterator's type
- Fix `CertParser::iter`'s type to be a `Box<'a +
Iterator<Item=Result<Packet>>>` rather than trying to be generic.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 1d931f27..b5685ca7 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -792,8 +792,7 @@ pub extern "C" fn pgp_cert_valid_key_iter_next<'a>( /// Wraps a CertParser for export via the FFI. pub struct CertParserWrapper<'a> { - parser: CertParser<'a, - Box<'a + Iterator<Item=self::openpgp::Result<self::openpgp::Packet>>>>, + parser: CertParser<'a>, } /// Returns a CertParser. |