diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-04-07 12:30:36 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2021-04-08 12:56:15 +0200 |
commit | a49be1e7efe20062436e86ca0ded041d83a44372 (patch) | |
tree | b13687a9313f5b8b57140dffb763a363cd8c911c /openpgp/src/serialize.rs | |
parent | b7a999e4ab382dacf976c74eb0d650d9a7e8f062 (diff) |
openpgp: Use Serialize::export for keys for consistency.
Diffstat (limited to 'openpgp/src/serialize.rs')
-rw-r--r-- | openpgp/src/serialize.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs index b9b50cb0..72e6aad2 100644 --- a/openpgp/src/serialize.rs +++ b/openpgp/src/serialize.rs @@ -2613,10 +2613,10 @@ impl Marshal for Packet { &Packet::Unknown(ref p) => p.export(o), &Packet::Signature(ref p) => p.export(o), &Packet::OnePassSig(ref p) => p.export(o), - &Packet::PublicKey(ref p) => p.serialize(o), - &Packet::PublicSubkey(ref p) => p.serialize(o), - &Packet::SecretKey(ref p) => p.serialize(o), - &Packet::SecretSubkey(ref p) => p.serialize(o), + &Packet::PublicKey(ref p) => p.export(o), + &Packet::PublicSubkey(ref p) => p.export(o), + &Packet::SecretKey(ref p) => p.export(o), + &Packet::SecretSubkey(ref p) => p.export(o), &Packet::Marker(ref p) => p.export(o), &Packet::Trust(ref p) => p.export(o), &Packet::UserID(ref p) => p.export(o), @@ -2839,10 +2839,10 @@ impl<'a> Marshal for PacketRef<'a> { PacketRef::Unknown(p) => p.export(o), PacketRef::Signature(p) => p.export(o), PacketRef::OnePassSig(p) => p.export(o), - PacketRef::PublicKey(p) => p.serialize(o), - PacketRef::PublicSubkey(p) => p.serialize(o), - PacketRef::SecretKey(p) => p.serialize(o), - PacketRef::SecretSubkey(p) => p.serialize(o), + PacketRef::PublicKey(p) => p.export(o), + PacketRef::PublicSubkey(p) => p.export(o), + PacketRef::SecretKey(p) => p.export(o), + PacketRef::SecretSubkey(p) => p.export(o), PacketRef::Marker(p) => p.export(o), PacketRef::Trust(p) => p.export(o), PacketRef::UserID(p) => p.export(o), |