diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-26 13:04:47 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-26 14:29:29 +0100 |
commit | b24d1c5a099e2c741cf724816d49b8dd7977e049 (patch) | |
tree | 0288feb61d74b61acc39045a5e2b31551eb7b131 /openpgp-ffi | |
parent | 33fd6f48682b15e140d479574ec3377610acb22d (diff) |
openpgp: Implement From<Fingerprint> for KeyID.
- Remove Fingerprint::to_keyid, use From instead.
Diffstat (limited to 'openpgp-ffi')
-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 794973aa..a74f64f0 100644 --- a/openpgp-ffi/src/fingerprint.rs +++ b/openpgp-ffi/src/fingerprint.rs @@ -99,5 +99,5 @@ fn pgp_fingerprint_to_hex(fp: *const Fingerprint) #[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C" fn pgp_fingerprint_to_keyid(fp: *const Fingerprint) -> *mut KeyID { - fp.ref_raw().to_keyid().move_into_raw() + openpgp::KeyID::from(fp.ref_raw()).move_into_raw() } |