summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-09-02 11:38:19 +0200
committerNeal H. Walfield <neal@pep.foundation>2019-09-02 13:32:01 +0200
commitfcdf939e7596b663bd467d82069d7cf2716a007d (patch)
tree4aed5fa47237aa947985b448722dd43592cbc65a
parent9a45fb209b9b52fe3bddaaf0e4a09b45e1eea26a (diff)
openpgp: When comparing UserIDs, only compare their values
- Ignore the common bits when comparing two UserIDs for equality; just consider the packets' contents.
-rw-r--r--openpgp/src/packet/userid.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs
index df9f1809..e8db9bdd 100644
--- a/openpgp/src/packet/userid.rs
+++ b/openpgp/src/packet/userid.rs
@@ -115,8 +115,7 @@ impl fmt::Debug for UserID {
impl PartialEq for UserID {
fn eq(&self, other: &UserID) -> bool {
- self.common == other.common
- && self.value == other.value
+ self.value == other.value
}
}