Update tokio-util
This commit is contained in:
parent
45b80e86a2
commit
9f6d03d38b
@ -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"] }
|
||||
|
@ -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<()> {
|
||||
|
Loading…
Reference in New Issue
Block a user