Update tokio-util

This commit is contained in:
Steven Fackler 2020-03-05 05:31:31 -08:00
parent 45b80e86a2
commit 9f6d03d38b
2 changed files with 2 additions and 3 deletions

View File

@ -49,7 +49,7 @@ phf = "0.8"
postgres-protocol = { version = "0.5.0", path = "../postgres-protocol" }
postgres-types = { version = "0.1.0", path = "../postgres-types" }
tokio = { version = "0.2", features = ["io-util"] }
tokio-util = { version = "0.2", features = ["codec"] }
tokio-util = { version = "0.3", features = ["codec"] }
[dev-dependencies]
tokio = { version = "0.2", features = ["full"] }

View File

@ -37,8 +37,7 @@ impl FallibleIterator for BackendMessages {
pub struct PostgresCodec;
impl Encoder for PostgresCodec {
type Item = FrontendMessage;
impl Encoder<FrontendMessage> for PostgresCodec {
type Error = io::Error;
fn encode(&mut self, item: FrontendMessage, dst: &mut BytesMut) -> io::Result<()> {