summaryrefslogtreecommitdiffstats
path: root/openpgp/src/policy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/policy.rs')
-rw-r--r--openpgp/src/policy.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/openpgp/src/policy.rs b/openpgp/src/policy.rs
index 2e31fb24..890513d5 100644
--- a/openpgp/src/policy.rs
+++ b/openpgp/src/policy.rs
@@ -566,16 +566,14 @@ mod test {
fn check(&mut self, structure: MessageStructure) -> Result<()>
{
- use crate::parse::stream::VerificationResult::*;
for layer in structure.iter() {
match layer {
MessageLayer::SignatureGroup { ref results } =>
for result in results {
eprintln!("result: {:?}", result);
match result {
- GoodChecksum { .. } => self.good += 1,
- Error { .. } => self.errors += 1,
- _ => (),
+ Ok(_) => self.good += 1,
+ Err(_) => self.errors += 1,
}
}
MessageLayer::Compression { .. } => (),
@@ -1033,15 +1031,13 @@ mod test {
fn check(&mut self, structure: MessageStructure) -> Result<()>
{
- use crate::parse::stream::VerificationResult::*;
for layer in structure.iter() {
match layer {
MessageLayer::SignatureGroup { ref results } =>
for result in results {
match result {
- GoodChecksum { .. } => self.good += 1,
- Error { .. } => self.errors += 1,
- _ => (),
+ Ok(_) => self.good += 1,
+ Err(_) => self.errors += 1,
}
}
MessageLayer::Compression { .. } => (),