diff options
Diffstat (limited to 'openpgp/src/packet/aed.rs')
-rw-r--r-- | openpgp/src/packet/aed.rs | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/openpgp/src/packet/aed.rs b/openpgp/src/packet/aed.rs index 1dfe579b..dffd654c 100644 --- a/openpgp/src/packet/aed.rs +++ b/openpgp/src/packet/aed.rs @@ -1,12 +1,10 @@ //! AEAD encrypted data packets. -use std::ops::{Deref, DerefMut}; - use crate::types::{ AEADAlgorithm, SymmetricAlgorithm, }; -use crate::packet::{self, Common}; +use crate::packet; use crate::Packet; use crate::Error; use crate::Result; @@ -136,22 +134,6 @@ impl From<AED1> for super::AED { } } -// Allow transparent access of common fields. -impl<'a> Deref for AED1 { - type Target = Common; - - fn deref(&self) -> &Self::Target { - &self.common - } -} - -// Allow transparent access of common fields. -impl<'a> DerefMut for AED1 { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.common - } -} - #[cfg(test)] mod tests { use super::*; |