diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-03-20 15:14:05 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-03-20 15:36:58 +0100 |
commit | 857845f523ab090638693d5498c8753e1e41cf36 (patch) | |
tree | 589fe471f65f98f3438633d83894fb160aa04f6f /openpgp/src/keyid.rs | |
parent | 8905aabfa245754426bd67ba5319024e61fc39db (diff) |
openpgp: Remove `to_hex` in KeyHandle, KeyID and Fingerprint.
- Replace all usages of `to_hex` with formatting string with :X
specifier.
- Fixes #456.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r-- | openpgp/src/keyid.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index 44619252..e7e262fd 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -166,11 +166,6 @@ impl KeyID { self.as_slice().iter().all(|b| *b == 0) } - /// Converts the key ID to a hexadecimal number. - pub fn to_hex(&self) -> String { - self.convert_to_string(false) - } - /// Common code for the above functions. fn convert_to_string(&self, pretty: bool) -> String { let raw = match self { |