summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/wrap-literal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/examples/wrap-literal.rs')
-rw-r--r--openpgp/examples/wrap-literal.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/examples/wrap-literal.rs b/openpgp/examples/wrap-literal.rs
index 155638a8..052db8f3 100644
--- a/openpgp/examples/wrap-literal.rs
+++ b/openpgp/examples/wrap-literal.rs
@@ -30,15 +30,15 @@ fn main() -> openpgp::Result<()> {
// Then, create a literal writer to wrap the data in a literal
// message packet.
- let mut literal = LiteralWriter::new(message).build()
+ let mut message = LiteralWriter::new(message).build()
.context("Failed to create literal writer")?;
// Copy all the data.
- io::copy(&mut io::stdin(), &mut literal)
+ io::copy(&mut io::stdin(), &mut message)
.context("Failed to sign data")?;
// Finally, teardown the stack to ensure all the data is written.
- literal.finalize()
+ message.finalize()
.context("Failed to write data")?;
Ok(())