summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/amalgamation.rs')
-rw-r--r--openpgp/src/cert/amalgamation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index 3d4602bc..6ef268c8 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -1184,8 +1184,8 @@ impl<'a, C> ValidComponentAmalgamation<'a, C>
})
.max_by(|(a, a_primary, a_signature_creation_time),
(b, b_primary, b_signature_creation_time)| {
- match (destructures_to!(RevocationStatus::Revoked(_) = &a.2),
- destructures_to!(RevocationStatus::Revoked(_) = &b.2)) {
+ match (matches!(&a.2, RevocationStatus::Revoked(_)),
+ matches!(&b.2, RevocationStatus::Revoked(_))) {
(true, false) => return Ordering::Less,
(false, true) => return Ordering::Greater,
_ => (),