[Improved] update README

This commit is contained in:
quininer kel 2017-02-22 20:09:10 +08:00
parent ced35f6688
commit 91e2131653
2 changed files with 5 additions and 3 deletions

View File

@ -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).

View File

@ -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 {