diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 10:35:11 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-04-02 10:35:11 +0200 |
commit | c75a4d60e6a10b3559370498a99ab946f6846043 (patch) | |
tree | 3d24bf9c881d95661c298ab6485dbadc888f051f /net/src | |
parent | 779839516db95a9f8498da25cdf4e965f6e10027 (diff) |
openpgp: Drop KeyID::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'net/src')
-rw-r--r-- | net/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/lib.rs b/net/src/lib.rs index 4e7c4655..17c790aa 100644 --- a/net/src/lib.rs +++ b/net/src/lib.rs @@ -27,7 +27,7 @@ //! let mut core = Core::new().unwrap(); //! let ctx = Context::new()?; //! let mut ks = KeyServer::keys_openpgp_org(&ctx)?; -//! let keyid = KeyID::from_hex("31855247603831FD").unwrap(); +//! let keyid = "31855247603831FD".parse().unwrap(); //! println!("{:?}", core.run(ks.get(&keyid))); //! Ok(()) //! # } |