summaryrefslogtreecommitdiffstats
path: root/openpgp/src/fingerprint.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-02-06 15:40:52 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-02-06 15:40:52 +0100
commit7c5b91a3c6b66a2ff27940398ac5b0204223d043 (patch)
treea86c8bd81cd00426869288ae84eac34d5729ba97 /openpgp/src/fingerprint.rs
parentd6ed2a3cbb18c50c2da73d5efbdade343e3bad12 (diff)
openpgp: Drop explicit implementation of ToString.
Diffstat (limited to 'openpgp/src/fingerprint.rs')
-rw-r--r--openpgp/src/fingerprint.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs
index 1e9779f2..a09a838d 100644
--- a/openpgp/src/fingerprint.rs
+++ b/openpgp/src/fingerprint.rs
@@ -5,7 +5,7 @@ use crate::Result;
impl fmt::Display for Fingerprint {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "{}", self.to_string())
+ write!(f, "{}", self.convert_to_string(true))
}
}
@@ -63,13 +63,6 @@ impl Fingerprint {
}
}
- /// Converts the fingerprint to its standard representation.
- ///
- /// Returns the fingerprint suitable for human consumption.
- pub fn to_string(&self) -> String {
- self.convert_to_string(true)
- }
-
/// Converts the fingerprint to a hexadecimal number.
pub fn to_hex(&self) -> String {
self.convert_to_string(false)