summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert.rs')
-rw-r--r--openpgp/src/cert.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index b9550210..005e6a41 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -4123,16 +4123,16 @@ mod test {
// v3 primary keys are not supported.
let cert = Cert::from_bytes(crate::tests::key("john-v3.pgp"));
- assert_match!(Error::UnsupportedCert(_)
+ assert_match!(Error::UnsupportedCert2(..)
= cert.err().unwrap().downcast::<Error>().unwrap());
let cert = Cert::from_bytes(crate::tests::key("john-v3-secret.pgp"));
- assert_match!(Error::UnsupportedCert(_)
+ assert_match!(Error::UnsupportedCert2(..)
= cert.err().unwrap().downcast::<Error>().unwrap());
// Lutz's key is a v3 key.
let cert = Cert::from_bytes(crate::tests::key("lutz.gpg"));
- assert_match!(Error::UnsupportedCert(_)
+ assert_match!(Error::UnsupportedCert2(..)
= cert.err().unwrap().downcast::<Error>().unwrap());
// v3 certifications are not supported