From b4893377a6f21957e55f360bb7332f10e44fb4da Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Sun, 25 Jun 2017 05:00:44 -0400 Subject: [PATCH] Updated examples because of new for_each_incoming return type. --- README.md | 4 ++-- examples/simple.rs | 2 +- examples/simple_ssl.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 87069f3..9047261 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ fn main() { server.identify().unwrap(); server.for_each_incoming(|message| { // Do message processing. - }) + }).unwrap() } ``` @@ -55,7 +55,7 @@ fn main() { server.identify().unwrap(); server.for_each_incoming(|message| { // Do message processing. - }) + }).unwrap() } ``` diff --git a/examples/simple.rs b/examples/simple.rs index cb2f8d7..69d2fd6 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -25,5 +25,5 @@ fn main() { } _ => (), } - }) + }).unwrap() } diff --git a/examples/simple_ssl.rs b/examples/simple_ssl.rs index 61e0250..7c13c30 100644 --- a/examples/simple_ssl.rs +++ b/examples/simple_ssl.rs @@ -25,5 +25,5 @@ fn main() { } _ => (), } - }) + }).unwrap() }