diff --git a/melib/src/gpgme/mod.rs b/melib/src/gpgme/mod.rs index 9dab35d6c..e7d334d6f 100644 --- a/melib/src/gpgme/mod.rs +++ b/melib/src/gpgme/mod.rs @@ -1039,6 +1039,12 @@ impl std::fmt::Debug for Key { } } +impl std::cmp::PartialEq for Key { + fn eq(&self, other: &Key) -> bool { + self.fingerprint() == other.fingerprint() + } +} + impl Drop for Key { #[inline] fn drop(&mut self) {