From 92fe353fc2b809c495baf2fd63cb40ebb85b1146 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Mon, 30 Oct 2023 14:11:14 -0600 Subject: [PATCH] Update asynchronous-codec and dev_dependencies --- Cargo.toml | 6 +++--- src/codec/zmq_codec.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 827a87b..de5d3ff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,13 +35,13 @@ uuid = { version = "1", features = ["v4"] } regex = { version = "1", default-features = false, features = ["std", "unicode-perl"] } once_cell = "1" log = "0.4" -asynchronous-codec = "0.6" +asynchronous-codec = "0.7" async-std = { version = "1", features = ["attributes"], optional = true } [dev-dependencies] chrono = "0.4" -criterion = "0.3" -pretty_env_logger = "0.4" +criterion = "0.5" +pretty_env_logger = "0.5" zmq2 = "0.5" hex = "0.4" diff --git a/src/codec/zmq_codec.rs b/src/codec/zmq_codec.rs index f609825..d4f5e1f 100644 --- a/src/codec/zmq_codec.rs +++ b/src/codec/zmq_codec.rs @@ -145,9 +145,9 @@ impl ZmqCodec { impl Encoder for ZmqCodec { type Error = CodecError; - type Item = Message; + type Item<'a> = Message; - fn encode(&mut self, message: Self::Item, dst: &mut BytesMut) -> Result<(), Self::Error> { + fn encode(&mut self, message: Self::Item<'_>, dst: &mut BytesMut) -> Result<(), Self::Error> { match message { Message::Greeting(payload) => dst.unsplit(payload.into()), Message::Command(command) => dst.unsplit(command.into()),