summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/revoke.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-02-26 14:13:19 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-02-26 14:24:32 +0100
commitffb15aa4567af3152633d07a4598444659a8fbd8 (patch)
tree290b3393716ead89edeb54d6f6e0bb2e992b4cd4 /openpgp/src/cert/revoke.rs
parent7196abb880a84c97116fd08ee0d036d2c1792021 (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/cert/revoke.rs')
-rw-r--r--openpgp/src/cert/revoke.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/openpgp/src/cert/revoke.rs b/openpgp/src/cert/revoke.rs
index 523e9a24..341bdf5e 100644
--- a/openpgp/src/cert/revoke.rs
+++ b/openpgp/src/cert/revoke.rs
@@ -19,7 +19,7 @@ use crate::packet::{
UserAttribute,
UserID,
};
-use crate::cert::Cert;
+use crate::cert::prelude::*;
/// A `Cert` revocation builder.
///
@@ -40,7 +40,7 @@ use crate::cert::Cert;
/// # extern crate sequoia_openpgp as openpgp;
/// # use openpgp::Result;
/// use openpgp::types::{ReasonForRevocation, RevocationStatus, SignatureType};
-/// use openpgp::cert::{CipherSuite, CertBuilder, CertRevocationBuilder};
+/// use openpgp::cert::prelude::*;
/// use openpgp::crypto::KeyPair;
/// use openpgp::parse::Parse;
/// use sequoia_openpgp::policy::StandardPolicy;
@@ -273,8 +273,8 @@ impl Deref for SubkeyRevocationBuilder {
/// # Example
///
/// ```
-/// # use sequoia_openpgp::{*, packet::*, types::*, cert::*};
-/// use sequoia_openpgp::cert::components::ValidAmalgamation;
+/// # use sequoia_openpgp::{*, packet::*, types::*};
+/// use sequoia_openpgp::cert::prelude::*;
/// use sequoia_openpgp::policy::StandardPolicy;
///
/// # f().unwrap();
@@ -390,8 +390,8 @@ impl Deref for UserIDRevocationBuilder {
/// # Example
///
/// ```
-/// # use sequoia_openpgp::{*, packet::*, types::*, cert::*};
-/// use sequoia_openpgp::cert::components::ValidAmalgamation;
+/// # use sequoia_openpgp::{*, packet::*, types::*};
+/// use sequoia_openpgp::cert::prelude::*;
/// use sequoia_openpgp::policy::StandardPolicy;
///
/// # f().unwrap();