summaryrefslogtreecommitdiffstats
path: root/sqv
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-06 13:35:35 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-06 13:39:56 +0100
commit2a75428b44fd56616342a786cc33dd66145f6228 (patch)
tree3ccf25024106dec1d81954aa47b3e9bf152d124f /sqv
parentd6f553a2f3063d2995fbd91ed137cc876d7ecdc0 (diff)
openpgp: Rename consuming conversion functions.
- Rename functions that consume their receiver but are called .to_...() to .into_...(). - For the packet types, simply drop the conversion function in favor of using the From trait. - Fixes #160.
Diffstat (limited to 'sqv')
-rw-r--r--sqv/tests/revoked-key.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/sqv/tests/revoked-key.rs b/sqv/tests/revoked-key.rs
index 4e6e71ad..ebffafb5 100644
--- a/sqv/tests/revoked-key.rs
+++ b/sqv/tests/revoked-key.rs
@@ -156,9 +156,9 @@ mod integration {
// };
// let tpk = TPK::from_packet_pile(PacketPile::from_packets(vec![
// key.to_packet(Tag::PublicKey).unwrap(),
-// bind1.to_packet(),
-// bind2.to_packet(),
-// rev.to_packet()
+// bind1.into(),
+// bind2.into(),
+// rev.into()
// ])).unwrap();
//
// {