From d42540f52f405555c278ecf65063f9a8fb93cd48 Mon Sep 17 00:00:00 2001 From: quininer Date: Wed, 27 Nov 2019 22:23:10 +0800 Subject: [PATCH] release 0.12.0 --- Cargo.toml | 3 ++- src/client.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3bc10f3..cf10494 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tokio-rustls" -version = "0.12.0-alpha.8" +version = "0.12.0" authors = ["quininer kel "] license = "MIT/Apache-2.0" repository = "https://github.com/quininer/tokio-rustls" @@ -15,6 +15,7 @@ edition = "2018" github-actions = { repository = "quininer/tokio-rustls", workflow = "ci" } [dependencies] +bytes = "0.5" tokio = "0.2.0" futures-core = "0.3.1" rustls = "0.16" diff --git a/src/client.rs b/src/client.rs index 470194a..779ddc5 100644 --- a/src/client.rs +++ b/src/client.rs @@ -128,8 +128,8 @@ where return Poll::Pending, Err(err) => return Poll::Ready(Err(err)) }; - data.extend_from_slice(&buf[..len]); if len != 0 { + data.extend_from_slice(&buf[..len]); return Poll::Ready(Ok(len)); } }