diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-19 17:32:46 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-19 17:32:46 +0100 |
commit | 505f45f8077ac92b4ae5fa6cde88a10a3be15af3 (patch) | |
tree | 61146c2790a9f66bfa03ae301dfa1e397cb93c19 /ipc/tests | |
parent | 1ddc1dd61b45b41801c1d1c364cd6789314cb8f3 (diff) |
openpgp: Use the builder pattern for stream::LiteralWriter.
- See #375.
Diffstat (limited to 'ipc/tests')
-rw-r--r-- | ipc/tests/gpg-agent.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/tests/gpg-agent.rs b/ipc/tests/gpg-agent.rs index dab1fb74..2dd5bb2b 100644 --- a/ipc/tests/gpg-agent.rs +++ b/ipc/tests/gpg-agent.rs @@ -111,7 +111,7 @@ fn sign() { // Emit a literal data packet. let mut literal_writer = LiteralWriter::new( - signer, None, None, None).unwrap(); + signer).build().unwrap(); // Sign the data. literal_writer.write_all(MESSAGE.as_bytes()).unwrap(); @@ -225,7 +225,7 @@ fn decrypt() { // Emit a literal data packet. let mut literal_writer = LiteralWriter::new( - encryptor, None, None, None).unwrap(); + encryptor).build().unwrap(); // Encrypt the data. literal_writer.write_all(MESSAGE.as_bytes()).unwrap(); |