summaryrefslogtreecommitdiffstats
path: root/store/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'store/src/lib.rs')
-rw-r--r--store/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/store/src/lib.rs b/store/src/lib.rs
index dc7cb9a5..1d2d65ac 100644
--- a/store/src/lib.rs
+++ b/store/src/lib.rs
@@ -887,7 +887,7 @@ impl Key {
/// # let new = Cert::from_bytes(
/// # &include_bytes!("../../openpgp/tests/data/keys/testy-new.pgp")[..]).unwrap();
/// let mapping = Mapping::open(&ctx, REALM_CONTACTS, "default")?;
- /// let fp = Fingerprint::from_hex("3E8877C877274692975189F5D03F6F865226FE8B").unwrap();
+ /// let fp = "3E8877C877274692975189F5D03F6F865226FE8B".parse().unwrap();
/// let binding = mapping.add("Testy McTestface", &fp)?;
/// let key = binding.key()?;
/// let r = key.import(&old)?;
@@ -1081,7 +1081,7 @@ impl Iterator for BundleIter {
self.core.borrow_mut(), request,
|r: node::binding_iter::item::Reader|
Ok((String::from(r.get_label()?),
- openpgp::Fingerprint::from_hex(r.get_fingerprint()?).unwrap(),
+ r.get_fingerprint().unwrap().parse()?,
Binding::new(self.core.clone(), Some(r.get_label()?),
r.get_binding()?))))
};
@@ -1104,7 +1104,7 @@ impl Iterator for KeyIter {
make_request_map!(
self.core.borrow_mut(), request,
|r: node::key_iter::item::Reader|
- Ok((openpgp::Fingerprint::from_hex(r.get_fingerprint()?).unwrap(),
+ Ok((r.get_fingerprint().unwrap().parse()?,
Key::new(self.core.clone(), r.get_key()?))))
};
doit().ok()