summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-07-05 14:34:40 +0200
committerJustus Winter <justus@sequoia-pgp.org>2023-07-05 14:34:40 +0200
commit2fbb17945cf643298b807a77ad2e08d6924968a6 (patch)
treee65a190503e8ff57136adf2b5ad58e3215e53cd6 /openpgp/src/serialize.rs
parent9525ad1ac6945dbd4a1174decb5d717a698da676 (diff)
openpgp: Relax the Sized constraint on the parameter.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index fe6d2183..0d3e4df6 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -727,7 +727,7 @@ impl BodyLength {
///
/// [`Error::InvalidArgument`]: Error::InvalidArgument
/// [`serialize(..)`]: Serialize
- pub fn serialize_old<W: io::Write>(&self, o: &mut W) -> Result<()> {
+ pub fn serialize_old<W: io::Write + ?Sized>(&self, o: &mut W) -> Result<()> {
// Assume an optimal encoding is desired.
let mut buffer = Vec::with_capacity(4);
match self {