diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 14:13:19 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-26 14:24:32 +0100 |
commit | ffb15aa4567af3152633d07a4598444659a8fbd8 (patch) | |
tree | 290b3393716ead89edeb54d6f6e0bb2e992b4cd4 /autocrypt | |
parent | 7196abb880a84c97116fd08ee0d036d2c1792021 (diff) |
openpgp: Add a prelude file to import things related to certificates
- Add `openpgp/src/cert/prelude.rs` to import most types and traits
related to certificates.
- Use it instead of using the types and traits individually.
Diffstat (limited to 'autocrypt')
-rw-r--r-- | autocrypt/src/cert.rs | 5 | ||||
-rw-r--r-- | autocrypt/src/lib.rs | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/autocrypt/src/cert.rs b/autocrypt/src/cert.rs index b1bef161..4063e97a 100644 --- a/autocrypt/src/cert.rs +++ b/autocrypt/src/cert.rs @@ -1,9 +1,6 @@ use sequoia_openpgp as openpgp; use openpgp::packet; -use openpgp::cert::{ - CertBuilder, - CipherSuite, -}; +use openpgp::cert::prelude::*; use openpgp::types::{ KeyFlags, }; diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs index cb3f32cf..d8e9d119 100644 --- a/autocrypt/src/lib.rs +++ b/autocrypt/src/lib.rs @@ -26,11 +26,7 @@ use openpgp::Error; pub use openpgp::Result; use openpgp::Packet; use openpgp::packet::SKESK; -use openpgp::Cert; -use openpgp::cert::components::{ - Amalgamation, - ValidAmalgamation -}; +use openpgp::cert::prelude::*; use openpgp::parse::{ Parse, PacketParserResult, PacketParser, |