diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 11:45:12 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 11:52:36 +0200 |
commit | d272928dc2317cb4f5a2b9a20aa10b515bc3e238 (patch) | |
tree | 7ddb0483b878bbe6ba103cad83437ea5e986acfe /openpgp/src/keyhandle.rs | |
parent | c75a4d60e6a10b3559370498a99ab946f6846043 (diff) |
openpgp: Drop Fingerprint::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp/src/keyhandle.rs')
-rw-r--r-- | openpgp/src/keyhandle.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/openpgp/src/keyhandle.rs b/openpgp/src/keyhandle.rs index b8d17e8e..1e8ef0d4 100644 --- a/openpgp/src/keyhandle.rs +++ b/openpgp/src/keyhandle.rs @@ -191,14 +191,12 @@ impl KeyHandle { /// # use openpgp::KeyHandle; /// # /// # let fpr1 : KeyHandle - /// # = Fingerprint::from_hex( - /// # "8F17 7771 18A3 3DDA 9BA4 8E62 AACB 3243 6300 52D9") - /// # .unwrap().into(); + /// # = "8F17 7771 18A3 3DDA 9BA4 8E62 AACB 3243 6300 52D9" + /// # .parse::<Fingerprint>().unwrap().into(); /// # /// # let fpr2 : KeyHandle - /// # = Fingerprint::from_hex( - /// # "0123 4567 8901 2345 6789 0123 AACB 3243 6300 52D9") - /// # .unwrap().into(); + /// # = "0123 4567 8901 2345 6789 0123 AACB 3243 6300 52D9" + /// # .parse::<Fingerprint>().unwrap().into(); /// # /// # let keyid : KeyHandle = "AACB 3243 6300 52D9".parse::<KeyID>() /// # .unwrap().into(); |