diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-09-29 11:54:26 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-09-29 12:02:52 +0200 |
commit | 5beeeeb1989155489687c3a13f6592581ae8d7ce (patch) | |
tree | fbfe67f713059b6a94f94354602e398ee48f9774 /openpgp/src/types/server_preferences.rs | |
parent | c84afa6db3f9605d9c763b07484c78fab7bc659f (diff) |
openpgp: Implement PartialOrd, Ord for signature-related types.
- In order to deduplicate signatures, we need to be able to sort
them. This change implements PartialOrd and Ord for all relevant
types. Like PartialEq and Eq it is based on the serialized form,
and can be derived for most of the types.
Diffstat (limited to 'openpgp/src/types/server_preferences.rs')
-rw-r--r-- | openpgp/src/types/server_preferences.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/server_preferences.rs b/openpgp/src/types/server_preferences.rs index ec58d9b2..fdac56fc 100644 --- a/openpgp/src/types/server_preferences.rs +++ b/openpgp/src/types/server_preferences.rs @@ -54,7 +54,7 @@ use crate::types::Bitfield; /// } /// # Ok(()) } /// ``` -#[derive(Clone, PartialEq, Eq, Hash)] +#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct KeyServerPreferences(Bitfield); impl fmt::Debug for KeyServerPreferences { |