release 0.12.0

This commit is contained in:
quininer 2019-11-27 22:23:10 +08:00
parent 078f6c0e73
commit d42540f52f
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "tokio-rustls"
version = "0.12.0-alpha.8"
version = "0.12.0"
authors = ["quininer kel <quininer@live.com>"]
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"

View File

@ -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));
}
}