summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyhandle.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-02 10:35:11 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-02 10:35:11 +0200
commitc75a4d60e6a10b3559370498a99ab946f6846043 (patch)
tree3d24bf9c881d95661c298ab6485dbadc888f051f /openpgp/src/keyhandle.rs
parent779839516db95a9f8498da25cdf4e965f6e10027 (diff)
openpgp: Drop KeyID::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp/src/keyhandle.rs')
-rw-r--r--openpgp/src/keyhandle.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/keyhandle.rs b/openpgp/src/keyhandle.rs
index f406101d..b8d17e8e 100644
--- a/openpgp/src/keyhandle.rs
+++ b/openpgp/src/keyhandle.rs
@@ -200,7 +200,7 @@ impl KeyHandle {
/// # "0123 4567 8901 2345 6789 0123 AACB 3243 6300 52D9")
/// # .unwrap().into();
/// #
- /// # let keyid : KeyHandle = KeyID::from_hex("AACB 3243 6300 52D9")
+ /// # let keyid : KeyHandle = "AACB 3243 6300 52D9".parse::<KeyID>()
/// # .unwrap().into();
/// #
/// // fpr1 and fpr2 are different fingerprints with the same KeyID.