summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-03-31 14:30:55 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-03-31 14:30:55 +0200
commit1dbeacb3f82faa58767e91bda45c0a59b778cf27 (patch)
treee649981a34995ee2a4060aa61632ee199bd2e485 /openpgp
parent455c80e4977bd55b0534ffbceb89c4634c0a61c2 (diff)
openpgp: Fix KeyServerPreferences::{PartialEq, Hash}.
- Also compare and hash unknown bits.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/types/server_preferences.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/types/server_preferences.rs b/openpgp/src/types/server_preferences.rs
index 6600f348..9578130f 100644
--- a/openpgp/src/types/server_preferences.rs
+++ b/openpgp/src/types/server_preferences.rs
@@ -49,6 +49,7 @@ impl fmt::Debug for KeyServerPreferences {
impl PartialEq for KeyServerPreferences {
fn eq(&self, other: &Self) -> bool {
self.no_modify == other.no_modify
+ && self.unknown == other.unknown
}
}
@@ -57,6 +58,7 @@ impl Eq for KeyServerPreferences {}
impl Hash for KeyServerPreferences {
fn hash<H: Hasher>(&self, state: &mut H) {
self.no_modify.hash(state);
+ self.unknown.hash(state);
}
}