summaryrefslogtreecommitdiffstats
path: root/net
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 /net
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 'net')
-rw-r--r--net/src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs
index 15f6ddb0..5f194550 100644
--- a/net/src/lib.rs
+++ b/net/src/lib.rs
@@ -159,8 +159,7 @@ impl KeyServer {
-> Box<dyn Future<Item=Cert, Error=anyhow::Error> + 'static> {
let keyid_want = keyid.clone();
let uri = self.uri.join(
- &format!("pks/lookup?op=get&options=mr&search=0x{}",
- keyid.to_hex()));
+ &format!("pks/lookup?op=get&options=mr&search=0x{:X}", keyid));
if let Err(e) = uri {
// This shouldn't happen, but better safe than sorry.
return Box::new(future::err(Error::from(e).into()));