summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/generate-sign-verify.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/generate-sign-verify.rs')
-rw-r--r--openpgp/examples/generate-sign-verify.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/openpgp/examples/generate-sign-verify.rs b/openpgp/examples/generate-sign-verify.rs
index 0ab1c7a5..6c43f25c 100644
--- a/openpgp/examples/generate-sign-verify.rs
+++ b/openpgp/examples/generate-sign-verify.rs
@@ -106,15 +106,15 @@ impl<'a> VerificationHelper for Helper<'a> {
// whether the signature checks out mathematically, we apply
// our policy.
match results.get(0) {
- Some(VerificationResult::GoodChecksum(..)) =>
+ Some(VerificationResult::GoodChecksum { .. }) =>
good = true,
- Some(VerificationResult::NotAlive(..)) =>
+ Some(VerificationResult::NotAlive { .. }) =>
return Err(failure::err_msg(
"Signature good, but not alive")),
- Some(VerificationResult::MissingKey(_)) =>
+ Some(VerificationResult::MissingKey { .. }) =>
return Err(failure::err_msg(
"Missing key to verify signature")),
- Some(VerificationResult::BadChecksum(_)) =>
+ Some(VerificationResult::BadChecksum { .. }) =>
return Err(failure::err_msg("Bad signature")),
None =>
return Err(failure::err_msg("No signature")),