summaryrefslogtreecommitdiffstats
path: root/ipc
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 /ipc
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 'ipc')
-rw-r--r--ipc/examples/gpg-agent-decrypt.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/ipc/examples/gpg-agent-decrypt.rs b/ipc/examples/gpg-agent-decrypt.rs
index f2ba2903..bd524e80 100644
--- a/ipc/examples/gpg-agent-decrypt.rs
+++ b/ipc/examples/gpg-agent-decrypt.rs
@@ -150,17 +150,17 @@ impl<'a> VerificationHelper for Helper<'a> {
},
Err(MissingKey { sig, .. }) => {
let issuers = sig.get_issuers();
- eprintln!("Missing key {}, which is needed to \
+ eprintln!("Missing key {:X}, which is needed to \
verify signature.",
- issuers.first().unwrap().to_hex());
+ issuers.first().unwrap());
},
Err(UnboundKey { cert, error, .. }) => {
- eprintln!("Signing key on {} is not bound: {}",
- cert.fingerprint().to_hex(), error);
+ eprintln!("Signing key on {:X} is not bound: {}",
+ cert.fingerprint(), error);
},
Err(BadKey { ka, error, .. }) => {
- eprintln!("Signing key on {} is bad: {}",
- ka.cert().fingerprint().to_hex(),
+ eprintln!("Signing key on {:X} is bad: {}",
+ ka.cert().fingerprint(),
error);
},
Err(BadSignature { error, .. }) => {