summaryrefslogtreecommitdiffstats
path: root/openpgp/examples/wrap-literal.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-11-14 17:11:25 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-11-14 17:27:50 +0100
commit3f0ed2e703f8db48501fdfe18df286bcdbaa2d3e (patch)
treefa67ade490d3ddaffd4b544f7be5a849d94c9877 /openpgp/examples/wrap-literal.rs
parent154ed7291ca9cce2de6e879e9785acc056a098a0 (diff)
Avoid identity slicing.
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 9d9560e3..335bf307 100644
--- a/openpgp/examples/wrap-literal.rs
+++ b/openpgp/examples/wrap-literal.rs
@@ -21,7 +21,7 @@ fn main() {
// Compose a writer stack corresponding to the output format and
// packet structure we want. First, we want the output to be
// ASCII armored.
- let sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[][..])
+ let sink = armor::Writer::new(io::stdout(), armor::Kind::Message, &[])
.expect("Failed to create armored writer.");
// Stream an OpenPGP message.