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/keyid.rs | |
parent | c75a4d60e6a10b3559370498a99ab946f6846043 (diff) |
openpgp: Drop Fingerprint::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r-- | openpgp/src/keyid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index fc5b7222..d65e2f1c 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -62,7 +62,7 @@ impl std::str::FromStr for KeyID { } else { // Maybe a fingerprint was given. Try to parse it and // convert it to a KeyID. - Ok(Fingerprint::from_hex(s)?.into()) + Ok(s.parse::<Fingerprint>()?.into()) } } } |