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/cert/parser/mod.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/cert/parser/mod.rs')
-rw-r--r-- | openpgp/src/cert/parser/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/parser/mod.rs b/openpgp/src/cert/parser/mod.rs index 7552f4db..f7e24d55 100644 --- a/openpgp/src/cert/parser/mod.rs +++ b/openpgp/src/cert/parser/mod.rs @@ -395,7 +395,7 @@ enum PacketSource<'a, I: Iterator<Item=Packet>> { /// # extern crate sequoia_openpgp as openpgp; /// # use openpgp::Result; /// # use openpgp::parse::{Parse, PacketParserResult, PacketParser}; -/// use openpgp::cert::CertParser; +/// use openpgp::cert::prelude::*; /// /// # fn main() { f().unwrap(); } /// # fn f() -> Result<()> { @@ -512,7 +512,7 @@ impl<'a, I: Iterator<Item=Packet>> CertParser<'a, I> { /// # extern crate sequoia_openpgp as openpgp; /// # use openpgp::Result; /// # use openpgp::parse::{Parse, PacketParser}; - /// use openpgp::cert::CertParser; + /// use openpgp::cert::prelude::*; /// use openpgp::Cert; /// use openpgp::KeyID; /// |