summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
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
parent154ed7291ca9cce2de6e879e9785acc056a098a0 (diff)
Avoid identity slicing.
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/encrypt-for.rs2
-rw-r--r--openpgp/examples/notarize.rs2
-rw-r--r--openpgp/examples/sign-detached.rs2
-rw-r--r--openpgp/examples/sign.rs2
-rw-r--r--openpgp/examples/wrap-literal.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index bc70e307..be2f1cc5 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -42,7 +42,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 an armored writer");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/notarize.rs b/openpgp/examples/notarize.rs
index 6643e573..126eb657 100644
--- a/openpgp/examples/notarize.rs
+++ b/openpgp/examples/notarize.rs
@@ -35,7 +35,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 an armored writer.");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/sign-detached.rs b/openpgp/examples/sign-detached.rs
index bc071ba6..a9764db8 100644
--- a/openpgp/examples/sign-detached.rs
+++ b/openpgp/examples/sign-detached.rs
@@ -28,7 +28,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::Signature, &[][..])
+ let sink = armor::Writer::new(io::stdout(), armor::Kind::Signature, &[])
.expect("Failed to create armored writer.");
// Stream an OpenPGP message.
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs
index 6b05a08c..53bc158c 100644
--- a/openpgp/examples/sign.rs
+++ b/openpgp/examples/sign.rs
@@ -29,7 +29,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 an armored writer.");
// Stream an OpenPGP message.
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.