diff options
Diffstat (limited to 'melib/src/gpgme/mod.rs')
-rw-r--r-- | melib/src/gpgme/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/melib/src/gpgme/mod.rs b/melib/src/gpgme/mod.rs index 9d8c4703..4a5926b0 100644 --- a/melib/src/gpgme/mod.rs +++ b/melib/src/gpgme/mod.rs @@ -64,7 +64,7 @@ mod bindings; use bindings::*; mod io; -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum GpgmeFlag { ///"auto-key-retrieve" AutoKeyRetrieve, @@ -1314,12 +1314,14 @@ impl std::fmt::Debug for Key { } } -impl std::cmp::PartialEq for Key { +impl PartialEq for Key { fn eq(&self, other: &Key) -> bool { self.fingerprint() == other.fingerprint() } } +impl Eq for Key {} + impl Drop for Key { #[inline] fn drop(&mut self) { |