Skip to content

Commit

Permalink
Remove unnecessary lifetime from digest in deserializer
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasKoch committed May 15, 2024
1 parent 93d4ba2 commit d761d65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/postcard/src/de/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ where
#[cfg(feature = "use-crc")]
#[cfg_attr(docsrs, doc(cfg(feature = "use-crc")))]
#[inline]
pub fn from_bytes_crc32<'a, T>(s: &'a [u8], digest: crc::Digest<'a, u32>) -> Result<T>
pub fn from_bytes_crc32<'a, T>(s: &'a [u8], digest: crc::Digest<'_, u32>) -> Result<T>
where
T: Deserialize<'a>,
{
Expand All @@ -116,7 +116,7 @@ where
#[inline]
pub fn take_from_bytes_crc32<'a, T>(
s: &'a [u8],
digest: crc::Digest<'a, u32>,
digest: crc::Digest<'_, u32>,
) -> Result<(T, &'a [u8])>
where
T: Deserialize<'a>,
Expand Down

0 comments on commit d761d65

Please sign in to comment.