Skip to content

Commit 9f6d03d

Browse files
committed
Update tokio-util
1 parent 45b80e8 commit 9f6d03d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tokio-postgres/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ phf = "0.8"
4949
postgres-protocol = { version = "0.5.0", path = "../postgres-protocol" }
5050
postgres-types = { version = "0.1.0", path = "../postgres-types" }
5151
tokio = { version = "0.2", features = ["io-util"] }
52-
tokio-util = { version = "0.2", features = ["codec"] }
52+
tokio-util = { version = "0.3", features = ["codec"] }
5353

5454
[dev-dependencies]
5555
tokio = { version = "0.2", features = ["full"] }

tokio-postgres/src/codec.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ impl FallibleIterator for BackendMessages {
3737

3838
pub struct PostgresCodec;
3939

40-
impl Encoder for PostgresCodec {
41-
type Item = FrontendMessage;
40+
impl Encoder<FrontendMessage> for PostgresCodec {
4241
type Error = io::Error;
4342

4443
fn encode(&mut self, item: FrontendMessage, dst: &mut BytesMut) -> io::Result<()> {

0 commit comments

Comments
 (0)