Skip to content

Commit

Permalink
fix(clippy): needless_lifetimes in codec::any
Browse files Browse the repository at this point in the history
Signed-off-by: Jad K. Haddad <jadkhaddad@gmail.com>
  • Loading branch information
JadKHaddad committed Oct 18, 2024
1 parent 9401b05 commit 9f94c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codec/any.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl<'a, const N: usize> From<AnyDelimiterCodec<'a>> for AnyDelimiterCodecOwned<
}
}

impl<'a, const N: usize> DecoderOwned for AnyDelimiterCodecOwned<'a, N> {
impl<const N: usize> DecoderOwned for AnyDelimiterCodecOwned<'_, N> {
type Item = Vec<u8, N>;
type Error = ();

Expand All @@ -174,7 +174,7 @@ impl<'a, const N: usize> DecoderOwned for AnyDelimiterCodecOwned<'a, N> {
}
}

impl<'a, const N: usize> Encoder<Vec<u8, N>> for AnyDelimiterCodecOwned<'a, N> {
impl<const N: usize> Encoder<Vec<u8, N>> for AnyDelimiterCodecOwned<'_, N> {
type Error = AnyDelimiterEncodeError;

fn encode(&mut self, item: Vec<u8, N>, dst: &mut [u8]) -> Result<usize, Self::Error> {
Expand Down

0 comments on commit 9f94c26

Please sign in to comment.