release 0.12.0
This commit is contained in:
parent
078f6c0e73
commit
d42540f52f
@ -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"
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user