summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-07-23 19:16:46 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-07-29 17:03:09 +0200
commit8251df5d6977e7ce445e059351dc5684026ce2e2 (patch)
tree2f744ff487f1cb354debcff165b96495d841b48d
parent20df0b8f6b70a997a3979a83c5dd0178cc0dbd99 (diff)
openpgp: Derive PartialOrd and Ord for SubpacketTag.
- It's useful to get a deduplicated list of all subpacket tags in a subpacket area. For this, we need `Ord`.
-rw-r--r--openpgp/src/packet/signature/subpacket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/signature/subpacket.rs b/openpgp/src/packet/signature/subpacket.rs
index db513907..8bf26b49 100644
--- a/openpgp/src/packet/signature/subpacket.rs
+++ b/openpgp/src/packet/signature/subpacket.rs
@@ -134,7 +134,7 @@ lazy_static!{
///
/// [Section 5.2.3.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.2.3.1
#[derive(Debug)]
-#[derive(PartialEq, Eq, Hash)]
+#[derive(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Clone, Copy)]
pub enum SubpacketTag {
/// The time the signature was made.