summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/wrap-literal.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-19 17:32:46 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-11-19 17:32:46 +0100
commit505f45f8077ac92b4ae5fa6cde88a10a3be15af3 (patch)
tree61146c2790a9f66bfa03ae301dfa1e397cb93c19 /openpgp/examples/wrap-literal.rs
parent1ddc1dd61b45b41801c1d1c364cd6789314cb8f3 (diff)
openpgp: Use the builder pattern for stream::LiteralWriter.
- See #375.
Diffstat (limited to 'openpgp/examples/wrap-literal.rs')
-rw-r--r--openpgp/examples/wrap-literal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs
index d3eed376..567ba3b5 100644
--- a/openpgp/examples/wrap-literal.rs
+++ b/openpgp/examples/wrap-literal.rs
@@ -28,7 +28,7 @@ fn main() {
// Then, create a literal writer to wrap the data in a literal
// message packet.
- let mut literal = LiteralWriter::new(message, None, None, None)
+ let mut literal = LiteralWriter::new(message).build()
.expect("Failed to create literal writer");
// Copy all the data.