summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyhandle.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-03-20 15:14:05 +0100
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-03-20 15:36:58 +0100
commit857845f523ab090638693d5498c8753e1e41cf36 (patch)
tree589fe471f65f98f3438633d83894fb160aa04f6f /openpgp/src/keyhandle.rs
parent8905aabfa245754426bd67ba5319024e61fc39db (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/keyhandle.rs')
-rw-r--r--openpgp/src/keyhandle.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/openpgp/src/keyhandle.rs b/openpgp/src/keyhandle.rs
index 80293fe6..8c08c117 100644
--- a/openpgp/src/keyhandle.rs
+++ b/openpgp/src/keyhandle.rs
@@ -146,14 +146,6 @@ impl PartialEq for KeyHandle {
}
impl KeyHandle {
- /// Converts the key handle to a hexadecimal number.
- pub fn to_hex(&self) -> String {
- match self {
- KeyHandle::Fingerprint(i) => i.to_hex(),
- KeyHandle::KeyID(i) => i.to_hex(),
- }
- }
-
/// Returns a reference to the raw identifier.
pub fn as_slice(&self) -> &[u8] {
match self {