summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyid.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/keyid.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/keyid.rs')
-rw-r--r--openpgp/src/keyid.rs5
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 {