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 /openpgp/src/parse/stream.rs | |
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 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 32f1c2ab..efe0d21e 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -42,12 +42,7 @@ use crate::{ Result, packet, packet::Signature, - Cert, - cert::components::{ - Amalgamation, - ValidAmalgamation, - ValidKeyAmalgamation, - }, + cert::prelude::*, crypto::SessionKey, serialize::Serialize, policy::Policy, @@ -2037,7 +2032,6 @@ mod test { #[test] fn verify_long_message() { use std::io::Write; - use crate::cert::{CertBuilder, CipherSuite}; use crate::serialize::stream::{LiteralWriter, Signer, Message}; let p = &P::new(); |