diff options
author | Azul <azul@riseup.net> | 2020-12-11 11:01:27 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-11 13:44:37 +0100 |
commit | 582a079f1cccc07bd74432ceb55da09e698da2d0 (patch) | |
tree | 768ff87d0985eb9460b036b732f3a73fb916068b /openpgp/src/cert.rs | |
parent | 7176d5746beb8835a1a09e9c3504f7bc8d0da6b3 (diff) |
openpgp: Make Cert::CertParser Send and Sync.
- See #615.
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r-- | openpgp/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs index bb2970fc..78dad9b1 100644 --- a/openpgp/src/cert.rs +++ b/openpgp/src/cert.rs @@ -1384,7 +1384,7 @@ impl Cert { /// # Ok(()) /// # } /// ``` - pub fn from_packets(p: impl Iterator<Item=Packet>) -> Result<Self> { + pub fn from_packets(p: impl Iterator<Item=Packet> + Send + Sync) -> Result<Self> { let mut i = parser::CertParser::from_iter(p); if let Some(cert_result) = i.next() { if i.next().is_some() { |