summaryrefslogtreecommitdiffstats
path: root/openpgp/src/keyid.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-03-02 11:27:44 +0100
committerJustus Winter <justus@sequoia-pgp.org>2021-03-02 11:54:11 +0100
commit43eab70f6a22b62ce0577e929e09f1d68cea80a8 (patch)
treecf3c1dc1a6e59f7b5c2531b8b7786181574738b5 /openpgp/src/keyid.rs
parent18038d05d207ded98620d7ee0f7f3ca968642072 (diff)
openpgp: Drop spaces from default string representation.
- Spaces in key ids and fingerprints make them awkward to copy and pass as command line arguments. Change the default representation. For the rare occasions that we expect users to manually verify fingerprints, the previously introduced *::to_hex_pretty functions can be used. - Fixes #422.
Diffstat (limited to 'openpgp/src/keyid.rs')
-rw-r--r--openpgp/src/keyid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/keyid.rs b/openpgp/src/keyid.rs
index 4e40b914..9c2e4842 100644
--- a/openpgp/src/keyid.rs
+++ b/openpgp/src/keyid.rs
@@ -69,7 +69,7 @@ assert_send_and_sync!(KeyID);
impl fmt::Display for KeyID {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- write!(f, "{}", self.convert_to_string(true))
+ write!(f, "{:X}", self)
}
}