Skip to content

Commit 104b1a8

Browse files
Bump dependency
1 parent 04d2d5c commit 104b1a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ asynchronous_codec = ["std", "bytes", "asynchronous-codec"]
2121
bytes = { version = "1", optional = true }
2222
futures-io = { version = "0.3.4", optional = true }
2323
futures-util = { version = "0.3.4", features = ["io"], optional = true }
24-
asynchronous-codec = { version = "0.6", optional = true }
24+
asynchronous-codec = { version = "0.7", optional = true }
2525
tokio-util = { version = "0.7", features = ["codec"], optional = true }
2626
nom = { version = "7", optional = true }
2727

src/codec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ macro_rules! encoder_decoder_impls {
6969

7070
#[cfg(feature = "asynchronous_codec")]
7171
impl asynchronous_codec::Encoder for Uvi<$typ> {
72-
type Item = $typ;
72+
type Item<'a> = $typ;
7373
type Error = io::Error;
7474

75-
fn encode(&mut self, item: Self::Item, dst: &mut BytesMut) -> Result<(), Self::Error> {
75+
fn encode(&mut self, item: Self::Item<'_>, dst: &mut BytesMut) -> Result<(), Self::Error> {
7676
self.serialise(item, dst);
7777
Ok(())
7878
}
@@ -183,10 +183,10 @@ impl<T> tokio_util::codec::Decoder for UviBytes<T> {
183183

184184
#[cfg(feature = "asynchronous_codec")]
185185
impl<T: Buf> asynchronous_codec::Encoder for UviBytes<T> {
186-
type Item = T;
186+
type Item<'a> = T;
187187
type Error = io::Error;
188188

189-
fn encode(&mut self, item: Self::Item, dst: &mut BytesMut) -> Result<(), Self::Error> {
189+
fn encode(&mut self, item: Self::Item<'_>, dst: &mut BytesMut) -> Result<(), Self::Error> {
190190
self.serialise(item, dst)
191191
}
192192
}

0 commit comments

Comments
 (0)