summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-10-06 14:17:23 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-10-06 14:56:16 +0200
commit30b553c35e021ecb2b0fa6c934e98750044c5d52 (patch)
tree4ccef2cc1320361f4b0bdf805961677c7855b2c4 /openpgp/src/serialize.rs
parent48d18fdff5f24526c3e83789f1ebfad763fa94af (diff)
openpgp: Avoid compile-time polymorphism.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r--openpgp/src/serialize.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs
index a7caab66..2c5f99af 100644
--- a/openpgp/src/serialize.rs
+++ b/openpgp/src/serialize.rs
@@ -1094,8 +1094,8 @@ impl MarshalInto for crypto::mpi::SecretKeyMaterial {
impl crypto::mpi::SecretKeyMaterial {
/// Writes this secret key with a checksum to `w`.
- pub fn serialize_with_checksum<W: io::Write>(
- &self, w: &mut W,
+ pub fn serialize_with_checksum(
+ &self, w: &mut dyn io::Write,
checksum: crypto::mpi::SecretKeyChecksum)
-> Result<()>
{