From 857845f523ab090638693d5498c8753e1e41cf36 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Fri, 20 Mar 2020 15:14:05 +0100 Subject: openpgp: Remove `to_hex` in KeyHandle, KeyID and Fingerprint. - Replace all usages of `to_hex` with formatting string with :X specifier. - Fixes #456. --- net/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'net/src/lib.rs') 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 + '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())); -- cgit v1.2.3