gpgme: add PartialEq impl for Key

jmap-eventsource
Manos Pitsidianakis 2020-10-09 17:20:37 +03:00
parent 0dd9e6a34b
commit 4dd8474c30
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 6 additions and 0 deletions

View File

@ -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 { impl Drop for Key {
#[inline] #[inline]
fn drop(&mut self) { fn drop(&mut self) {