Browse Source

gpgme: add PartialEq impl for Key

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
4dd8474c30
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 6
      melib/src/gpgme/mod.rs

6
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) {

Loading…
Cancel
Save