diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-10-09 17:20:37 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-10-11 16:53:04 +0300 |
commit | 4dd8474c3062cf75c175f72004ca0ecd2d830e64 (patch) | |
tree | f5b9c30c5a37a996a369fb71e55121d6def6f3ad /melib | |
parent | 0dd9e6a34bb9fb8f034627eececc6cb7361fe6c2 (diff) |
gpgme: add PartialEq impl for Key
Diffstat (limited to 'melib')
-rw-r--r-- | melib/src/gpgme/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/melib/src/gpgme/mod.rs b/melib/src/gpgme/mod.rs index 9dab35d6..e7d334d6 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) { |