summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/encrypt-for.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/encrypt-for.rs')
-rw-r--r--openpgp/examples/encrypt-for.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index 7b1f48e7..3076c7a4 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -56,7 +56,7 @@ fn main() {
&recipients,
None, None)
.expect("Failed to create encryptor");
- let mut literal_writer = LiteralWriter::new(encryptor, None, None, None)
+ let mut literal_writer = LiteralWriter::new(encryptor).build()
.expect("Failed to create literal writer");
// Copy stdin to our writer stack to encrypt the data.