diff options
Diffstat (limited to 'autocrypt/src/serialize.rs')
-rw-r--r-- | autocrypt/src/serialize.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/autocrypt/src/serialize.rs b/autocrypt/src/serialize.rs index 0375c774..85979057 100644 --- a/autocrypt/src/serialize.rs +++ b/autocrypt/src/serialize.rs @@ -1,5 +1,5 @@ use sequoia_openpgp as openpgp; -use openpgp::serialize::Serialize; +use openpgp::serialize::Marshal; use super::{ AutocryptHeader, @@ -7,7 +7,9 @@ use super::{ Result, }; -impl Serialize for AutocryptHeader { +impl openpgp::serialize::Serialize for AutocryptHeader {} + +impl Marshal for AutocryptHeader { fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> { if self.key.is_none() { return Err(Error::InvalidOperation("No key".into()).into()); |