Skip to content

Commit

Permalink
Update asynchronous-codec and dev_dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Oct 30, 2023
1 parent f6ec965 commit 92fe353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions src/codec/zmq_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down

0 comments on commit 92fe353

Please sign in to comment.