summaryrefslogtreecommitdiffstats
path: root/openpgp/src/message/mod.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-04-02 10:35:11 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-04-02 10:35:11 +0200
commitc75a4d60e6a10b3559370498a99ab946f6846043 (patch)
tree3d24bf9c881d95661c298ab6485dbadc888f051f /openpgp/src/message/mod.rs
parent779839516db95a9f8498da25cdf4e965f6e10027 (diff)
openpgp: Drop KeyID::from_hex in favor of FromStr.
- See #462.
Diffstat (limited to 'openpgp/src/message/mod.rs')
-rw-r--r--openpgp/src/message/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs
index fa99414f..9488e35b 100644
--- a/openpgp/src/message/mod.rs
+++ b/openpgp/src/message/mod.rs
@@ -476,7 +476,6 @@ mod tests {
use crate::crypto::S2K;
use crate::crypto::mpis::{Ciphertext, MPI};
use crate::packet::prelude::*;
- use crate::KeyID;
#[test]
fn tokens() {
@@ -1124,7 +1123,7 @@ mod tests {
packets.insert(
1,
PKESK3::new(
- KeyID::from_hex("0000111122223333").unwrap(),
+ "0000111122223333".parse().unwrap(),
PublicKeyAlgorithm::RSAEncrypt,
Ciphertext::RSA { c: MPI::new(&[]) }).unwrap().into());