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 {