From 91e21316537c8d4525bd3b61fa8431dba361a401 Mon Sep 17 00:00:00 2001 From: quininer kel Date: Wed, 22 Feb 2017 20:09:10 +0800 Subject: [PATCH] [Improved] update README --- README.md | 3 +++ examples/client.rs | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5cdcb70..efd4c48 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # tokio-rustls +[![crates](https://img.shields.io/crates/v/tokio-rustls.svg)](https://crates.io/crates/tokio-rustls) +[![license](https://img.shields.io/github/license/quininer/tokio-rustls.svg)](https://github.com/quininer/tokio-rustls/blob/master/LICENSE) +[![docs.rs](https://docs.rs/tokio-rustls/badge.svg)](https://docs.rs/tokio-rustls/) [tokio-tls](https://github.com/tokio-rs/tokio-tls) fork, use [rustls](https://github.com/ctz/rustls). diff --git a/examples/client.rs b/examples/client.rs index 6fb5f5b..471c484 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -50,9 +50,8 @@ fn main() { .next().unwrap(); let stdout = stdout(); - let mut stdout = File::new_nb(StdFile(stdout.lock())).unwrap(); - stdout.set_nonblocking(true).unwrap(); - let stdout = stdout.into_io(&handle).unwrap(); + let stdout = File::new_nb(StdFile(stdout.lock())).unwrap() + .into_io(&handle).unwrap(); let mut config = ClientConfig::new(); if let Some(cafile) = cafile {