summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-11-16 11:04:36 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-14 14:05:21 +0100
commitd411fb80983a4d4ebb9f023599c38e34a26551e7 (patch)
treefc970ff950923f7c400b24163f4079b3c6ba48cf /examples
parent251541318fdf453c5d756794b906cce2fd69b675 (diff)
openpgp: Introduce trait Parse.
- Trait Parse introduces a uniform interface to parse packets, messages, keys, and related data structures.
Diffstat (limited to 'examples')
-rw-r--r--examples/guide-exploring-openpgp.rs1
-rw-r--r--examples/guide-the-keystore.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs
index 88d4559d..66b95588 100644
--- a/examples/guide-exploring-openpgp.rs
+++ b/examples/guide-exploring-openpgp.rs
@@ -2,6 +2,7 @@
#[macro_use] // For armored!
extern crate sequoia_openpgp as openpgp;
+use openpgp::parse::Parse;
fn main() {
let mut reader = armored!(
diff --git a/examples/guide-the-keystore.rs b/examples/guide-the-keystore.rs
index 8ede6ac9..dac57c85 100644
--- a/examples/guide-the-keystore.rs
+++ b/examples/guide-the-keystore.rs
@@ -4,6 +4,7 @@
extern crate sequoia_openpgp as openpgp;
extern crate sequoia;
use sequoia::{core, store};
+use openpgp::parse::Parse;
fn main() {
let mut reader = armored!(