diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-03-20 15:14:05 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-03-20 15:36:58 +0100 |
commit | 857845f523ab090638693d5498c8753e1e41cf36 (patch) | |
tree | 589fe471f65f98f3438633d83894fb160aa04f6f /net | |
parent | 8905aabfa245754426bd67ba5319024e61fc39db (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.rs | 3 |
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())); |