diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 12:19:44 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-09-10 13:33:02 +0200 |
commit | 7e81d5334673ead921337aeef318d4069877bd47 (patch) | |
tree | 26fecb006ffdbbe11d4afac1b4cfa07e326f90db /openpgp-ffi | |
parent | ef4c52649f2842a42e17b6d53c077665fcd78842 (diff) |
openpgp: Make 'LiteralWriter::new's arguments optional.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/serialize.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/openpgp-ffi/src/serialize.rs b/openpgp-ffi/src/serialize.rs index 4322241b..8b0fedbd 100644 --- a/openpgp-ffi/src/serialize.rs +++ b/openpgp-ffi/src/serialize.rs @@ -18,7 +18,6 @@ use self::openpgp::{ }; use self::openpgp::constants::{ AEADAlgorithm, - DataFormat, HashAlgorithm, SymmetricAlgorithm, }; @@ -225,10 +224,7 @@ pub extern "C" fn pgp_literal_writer_new { ffi_make_fry_from_errp!(errp); let inner = ffi_param_move!(inner); - ffi_try_box!(LiteralWriter::new(*inner, - DataFormat::Binary, - None, - None)) + ffi_try_box!(LiteralWriter::new(*inner, None, None, None)) } /// A recipient of an encrypted message. |