diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-07-23 19:16:46 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-07-29 17:03:09 +0200 |
commit | 8251df5d6977e7ce445e059351dc5684026ce2e2 (patch) | |
tree | 2f744ff487f1cb354debcff165b96495d841b48d | |
parent | 20df0b8f6b70a997a3979a83c5dd0178cc0dbd99 (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.rs | 2 |
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. |