diff options
Diffstat (limited to 'openpgp/examples/wrap-literal.rs')
-rw-r--r-- | openpgp/examples/wrap-literal.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs index 3019cbd8..fe49ec37 100644 --- a/openpgp/examples/wrap-literal.rs +++ b/openpgp/examples/wrap-literal.rs @@ -7,6 +7,7 @@ use std::env; use std::io; use anyhow::Context; +use futures::FutureExt; use sequoia_openpgp as openpgp; @@ -38,7 +39,7 @@ fn main() -> openpgp::Result<()> { .context("Failed to sign data")?; // Finally, teardown the stack to ensure all the data is written. - message.finalize() + message.finalize().now_or_never().unwrap() .context("Failed to write data")?; Ok(()) |