Remove unnecessary lifetimes

Linter with new nightly toolchain finds another lifetime that can be
elided, do so.
This commit is contained in:
Tobin C. Harding 2024-10-23 06:55:25 +11:00
parent b4f52ac87a
commit ddde3162ff
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ macro_rules! serde_round_trip (
/// Serializes a byte slice using the `hex` crate. /// Serializes a byte slice using the `hex` crate.
pub struct SerializeBytesAsHex<'a>(pub &'a [u8]); pub struct SerializeBytesAsHex<'a>(pub &'a [u8]);
impl<'a> serde::Serialize for SerializeBytesAsHex<'a> { impl serde::Serialize for SerializeBytesAsHex<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where where
S: serde::Serializer, S: serde::Serializer,