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/src/parse | |
parent | ef4c52649f2842a42e17b6d53c077665fcd78842 (diff) |
openpgp: Make 'LiteralWriter::new's arguments optional.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/stream.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 6d7b7c64..f75e89bf 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -1804,7 +1804,6 @@ mod test { #[test] fn verify_long_message() { - use crate::constants::DataFormat; use crate::tpk::{TPKBuilder, CipherSuite}; use crate::serialize::stream::{LiteralWriter, Signer, Message}; use std::io::Write; @@ -1822,7 +1821,7 @@ mod test { let m = Message::new(&mut buf); let signer = Signer::new(m, vec![&mut keypair], None).unwrap(); - let mut ls = LiteralWriter::new(signer, DataFormat::Binary, None, None).unwrap(); + let mut ls = LiteralWriter::new(signer, None, None, None).unwrap(); ls.write_all(&mut vec![42u8; 30 * 1024 * 1024]).unwrap(); ls.finalize().unwrap(); |