summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-06-29 15:17:28 +0200
committerJustus Winter <justus@sequoia-pgp.org>2018-06-29 15:18:11 +0200
commit7b2c3e5dc5da91a9fa8a045afdd7e4900d56834b (patch)
treef98bb0daf0a3a855317d1175c33dce6c25467df8
parent30bef91a9cbf5f9a7f474da921b92ac9d8d089c2 (diff)
openpgp: Derive Eq for Fingerprint.
- This is necessary to use Fingerprints as keys in hash maps.
-rw-r--r--openpgp/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs
index de9269a4..8289d6b9 100644
--- a/openpgp/src/lib.rs
+++ b/openpgp/src/lib.rs
@@ -621,7 +621,7 @@ pub struct Message {
/// 4880].
///
/// [Section 12.2 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-12.2
-#[derive(PartialEq, Clone, Hash)]
+#[derive(PartialEq, Eq, Clone, Hash)]
pub enum Fingerprint {
/// 20 byte SHA-1 hash.
V4([u8;20]),