diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-17 15:07:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-17 18:06:00 +0100 |
commit | a8e65c51ff6ce3092f741562c70641262af18065 (patch) | |
tree | 09b9cdc6d0af0a2a47a17a5d0138eeb64aa251bd /openpgp/src | |
parent | 3a6983623b14d312299da00ae7ebac3a25026889 (diff) |
openpgp: Make Features and KeyServerPreferences impl Eq, Hash.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/types/features.rs | 2 | ||||
-rw-r--r-- | openpgp/src/types/server_preferences.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/types/features.rs b/openpgp/src/types/features.rs index 7deb632f..2f230042 100644 --- a/openpgp/src/types/features.rs +++ b/openpgp/src/types/features.rs @@ -1,5 +1,5 @@ /// Describes features supported by an OpenPGP implementation. -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct Features{ mdc: bool, aead: bool, diff --git a/openpgp/src/types/server_preferences.rs b/openpgp/src/types/server_preferences.rs index 5567f4a9..4b432526 100644 --- a/openpgp/src/types/server_preferences.rs +++ b/openpgp/src/types/server_preferences.rs @@ -1,7 +1,7 @@ use std::fmt; /// Describes preferences regarding key servers. -#[derive(Clone, PartialEq, Eq)] +#[derive(Clone, PartialEq, Eq, Hash)] pub struct KeyServerPreferences{ no_modify: bool, unknown: Box<[u8]>, |