diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/openpgp/openpgp.rs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/openpgp/openpgp.rs b/src/openpgp/openpgp.rs index 999dde4f..d0d7f023 100644 --- a/src/openpgp/openpgp.rs +++ b/src/openpgp/openpgp.rs @@ -236,15 +236,6 @@ impl std::fmt::Debug for Signature { } } -// Allow transparent access of common fields. -impl<'a> Deref for Signature { - type Target = PacketCommon; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - #[derive(PartialEq)] pub struct Key { common: PacketCommon, @@ -269,15 +260,6 @@ impl std::fmt::Debug for Key { } } -// Allow transparent access of common fields. -impl<'a> Deref for Key { - type Target = PacketCommon; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - #[derive(PartialEq)] pub struct UserID { common: PacketCommon, @@ -294,15 +276,6 @@ impl std::fmt::Debug for UserID { } } -// Allow transparent access of common fields. -impl<'a> Deref for UserID { - type Target = PacketCommon; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - #[derive(PartialEq)] pub struct Literal { common: PacketCommon, @@ -348,30 +321,12 @@ impl std::fmt::Debug for Literal { } } -// Allow transparent access of common fields. -impl<'a> Deref for Literal { - type Target = PacketCommon; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - #[derive(PartialEq)] pub struct CompressedData { common: PacketCommon, algo: u8, } -// Allow transparent access of common fields. -impl Deref for CompressedData { - type Target = PacketCommon; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - impl std::fmt::Debug for CompressedData { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("CompressedData") |