From a8e65c51ff6ce3092f741562c70641262af18065 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 17 Dec 2019 15:07:53 +0100 Subject: openpgp: Make Features and KeyServerPreferences impl Eq, Hash. --- openpgp/src/types/features.rs | 2 +- openpgp/src/types/server_preferences.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'openpgp/src/types') 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]>, -- cgit v1.2.3