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 /ipc/examples | |
parent | ef4c52649f2842a42e17b6d53c077665fcd78842 (diff) |
openpgp: Make 'LiteralWriter::new's arguments optional.
Diffstat (limited to 'ipc/examples')
-rw-r--r-- | ipc/examples/gpg-agent-sign.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs index e7dd6e53..1a089622 100644 --- a/ipc/examples/gpg-agent-sign.rs +++ b/ipc/examples/gpg-agent-sign.rs @@ -7,7 +7,6 @@ extern crate sequoia_openpgp as openpgp; extern crate sequoia_ipc as ipc; use crate::openpgp::armor; -use crate::openpgp::constants::DataFormat; use crate::openpgp::parse::Parse; use crate::openpgp::serialize::stream::{Message, LiteralWriter, Signer}; use crate::ipc::gnupg::{Context, KeyPair}; @@ -63,7 +62,7 @@ fn main() { // Then, create a literal writer to wrap the data in a literal // message packet. - let mut literal = LiteralWriter::new(signer, DataFormat::Binary, None, None) + let mut literal = LiteralWriter::new(signer, None, None, None) .expect("Failed to create literal writer"); // Copy all the data. |