From 3f0ed2e703f8db48501fdfe18df286bcdbaa2d3e Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 14 Nov 2018 17:11:25 +0100 Subject: Avoid identity slicing. --- openpgp/examples/wrap-literal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp/examples/wrap-literal.rs') 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. -- cgit v1.2.3