summaryrefslogtreecommitdiffstats
path: root/net
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 /net
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 'net')
-rw-r--r--net/src/wkd.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/src/wkd.rs b/net/src/wkd.rs
index 0b16ac35..542689bb 100644
--- a/net/src/wkd.rs
+++ b/net/src/wkd.rs
@@ -35,7 +35,7 @@ use crate::openpgp::{
use crate::openpgp::parse::Parse;
use crate::openpgp::serialize::Serialize;
use crate::openpgp::types::HashAlgorithm;
-use crate::openpgp::cert::CertParser;
+use crate::openpgp::cert::prelude::*;
use super::{Result, Error};
@@ -424,7 +424,6 @@ impl Serialize for KeyRing {
#[cfg(test)]
mod tests {
use crate::openpgp::serialize::Serialize;
- use crate::openpgp::cert::CertBuilder;
use super::*;
use self::Variant::*;