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/examples/wrap-literal.rs | |
parent | ef4c52649f2842a42e17b6d53c077665fcd78842 (diff) |
openpgp: Make 'LiteralWriter::new's arguments optional.
Diffstat (limited to 'openpgp/examples/wrap-literal.rs')
-rw-r--r-- | openpgp/examples/wrap-literal.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs index e50b8de7..d3eed376 100644 --- a/openpgp/examples/wrap-literal.rs +++ b/openpgp/examples/wrap-literal.rs @@ -8,7 +8,6 @@ use std::io; extern crate sequoia_openpgp as openpgp; use crate::openpgp::armor; -use crate::openpgp::constants::DataFormat; use crate::openpgp::serialize::stream::{Message, LiteralWriter}; fn main() { @@ -29,8 +28,7 @@ fn main() { // Then, create a literal writer to wrap the data in a literal // message packet. - let mut literal = LiteralWriter::new(message, DataFormat::Binary, - None, None) + let mut literal = LiteralWriter::new(message, None, None, None) .expect("Failed to create literal writer"); // Copy all the data. |