diff options
Diffstat (limited to 'openpgp/src/serialize/mod.rs')
-rw-r--r-- | openpgp/src/serialize/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/mod.rs b/openpgp/src/serialize/mod.rs index e5259db3..bf7c7080 100644 --- a/openpgp/src/serialize/mod.rs +++ b/openpgp/src/serialize/mod.rs @@ -915,7 +915,7 @@ impl Serialize for CompressedData { self.common.body.as_ref().map(|body| body.len())); } - let o = stream::wrap(o); + let o = stream::Message::new(o); let mut o = stream::Compressor::new(o, self.algo)?; // Serialize the packets. |