summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
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 /openpgp-ffi
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 'openpgp-ffi')
-rw-r--r--openpgp-ffi/src/packet/signature.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/packet/signature.rs b/openpgp-ffi/src/packet/signature.rs
index 6c5bd8db..aaec071e 100644
--- a/openpgp-ffi/src/packet/signature.rs
+++ b/openpgp-ffi/src/packet/signature.rs
@@ -32,7 +32,7 @@ pub extern "system" fn pgp_signature_to_packet(s: *mut Signature)
-> *mut Packet
{
let s = ffi_param_move!(s);
- box_raw!(s.to_packet())
+ box_raw!((*s).into())
}
/// Returns the value of the `Signature` packet's Issuer subpacket.