summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-09-17 17:15:58 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-09-18 10:14:15 +0200
commit702d7c5dc4dfff8bb591bc87f33c968bb52cd33c (patch)
tree5a3b94b47209fff400fff4b0b3c6ad5b4856abb3 /examples
parentf356ef30a2ccfee2b63db8b9439d5b1898f97d9a (diff)
store: Rename store::Store to Mapping.
- Fixes #88.
Diffstat (limited to 'examples')
-rw-r--r--examples/guide-the-keystore.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/guide-the-keystore.rs b/examples/guide-the-keystore.rs
index 8aff153e..f818137a 100644
--- a/examples/guide-the-keystore.rs
+++ b/examples/guide-the-keystore.rs
@@ -44,14 +44,14 @@ fn main() {
// Parse TPK.
let tpk = openpgp::TPK::from_bytes(tpk).unwrap();
- // Open a store.
- let store =
- store::Store::open(&ctx, store::REALM_CONTACTS, "default").unwrap();
+ // Open a mapping.
+ let mapping =
+ store::Mapping::open(&ctx, store::REALM_CONTACTS, "default").unwrap();
// Store the TPK.
- store.import("Ἀριστοτέλης", &tpk).unwrap();
+ mapping.import("Ἀριστοτέλης", &tpk).unwrap();
// Now let's get it back.
- let tpk_ = store.lookup("Ἀριστοτέλης").unwrap().tpk().unwrap();
+ let tpk_ = mapping.lookup("Ἀριστοτέλης").unwrap().tpk().unwrap();
assert_eq!(tpk.fingerprint(), tpk_.fingerprint());
}