summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/skesk.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-18 11:27:16 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-18 12:07:57 +0100
commit9a230f18f8d936109aa8e1994a2b7cd1347143a8 (patch)
tree0faaca63c647bc549ab69c9f24abaa4d18c8e7b8 /openpgp/src/packet/skesk.rs
parent31df689b6d702b9912a8342469941c78ab5bf6b4 (diff)
openpgp: Move Serialize::to_vec to SerializeInto::to_vec.
- Here, we have .serialized_len() to compute the capacity needed, and .to_vec() is not a streaming interface.
Diffstat (limited to 'openpgp/src/packet/skesk.rs')
-rw-r--r--openpgp/src/packet/skesk.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/skesk.rs b/openpgp/src/packet/skesk.rs
index caf40178..5a929f25 100644
--- a/openpgp/src/packet/skesk.rs
+++ b/openpgp/src/packet/skesk.rs
@@ -418,7 +418,7 @@ mod test {
use super::*;
use PacketPile;
use parse::Parse;
- use serialize::Serialize;
+ use serialize::{Serialize, SerializeInto};
quickcheck! {
fn roundtrip(p: SKESK) -> bool {