diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 15:40:52 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-06 15:40:52 +0100 |
commit | 7c5b91a3c6b66a2ff27940398ac5b0204223d043 (patch) | |
tree | a86c8bd81cd00426869288ae84eac34d5729ba97 /openpgp/src/keyid.rs | |
parent | d6ed2a3cbb18c50c2da73d5efbdade343e3bad12 (diff) |
openpgp: Drop explicit implementation of ToString.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r-- | openpgp/src/keyid.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs index fac2b4c0..0504abda 100644 --- a/openpgp/src/keyid.rs +++ b/openpgp/src/keyid.rs @@ -8,7 +8,7 @@ use crate::Result; impl fmt::Display for KeyID { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{}", self.to_string()) + write!(f, "{}", self.convert_to_string(true)) } } @@ -146,13 +146,6 @@ impl KeyID { self.as_slice().iter().all(|b| *b == 0) } - /// Converts the key ID to its standard representation. - /// - /// Returns the fingerprint suitable for human consumption. - pub fn to_string(&self) -> String { - self.convert_to_string(true) - } - /// Converts the key ID to a hexadecimal number. pub fn to_hex(&self) -> String { self.convert_to_string(false) |