diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 10:35:11 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 10:35:11 +0200 |
commit | c75a4d60e6a10b3559370498a99ab946f6846043 (patch) | |
tree | 3d24bf9c881d95661c298ab6485dbadc888f051f /openpgp-ffi | |
parent | 779839516db95a9f8498da25cdf4e965f6e10027 (diff) |
openpgp: Drop KeyID::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/keyid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/keyid.rs b/openpgp-ffi/src/keyid.rs index fb1fc735..f21c4a84 100644 --- a/openpgp-ffi/src/keyid.rs +++ b/openpgp-ffi/src/keyid.rs @@ -81,7 +81,7 @@ fn pgp_keyid_from_bytes(id: *const u8) -> *mut KeyID { #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_keyid_from_hex(id: *const c_char) -> Maybe<KeyID> { let id = ffi_param_cstr!(id).to_string_lossy(); - openpgp::KeyID::from_hex(&id).ok().move_into_raw() + id.parse::<openpgp::KeyID>().ok().move_into_raw() } /// Converts the KeyID to a hexadecimal number. |