gpgme: add PartialEq impl for Key
parent
0dd9e6a34b
commit
4dd8474c30
|
@ -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…
Reference in New Issue