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-ffi/src | |
parent | c75a4d60e6a10b3559370498a99ab946f6846043 (diff) |
openpgp: Drop Fingerprint::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/fingerprint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/fingerprint.rs b/openpgp-ffi/src/fingerprint.rs index 86bb7d21..8ba41f48 100644 --- a/openpgp-ffi/src/fingerprint.rs +++ b/openpgp-ffi/src/fingerprint.rs @@ -70,7 +70,7 @@ fn pgp_fingerprint_from_bytes(buf: *const u8, fn pgp_fingerprint_from_hex(hex: *const c_char) -> Maybe<Fingerprint> { let hex = ffi_param_cstr!(hex).to_string_lossy(); - openpgp::Fingerprint::from_hex(&hex).ok().move_into_raw() + hex.parse::<openpgp::Fingerprint>().ok().move_into_raw() } /// Returns a reference to the raw Fingerprint. |