Skip to content

Commit

Permalink
[json] Clippy lint fix
Browse files Browse the repository at this point in the history
- elide lifetimes
  • Loading branch information
Enet4 committed Oct 28, 2024
1 parent 92c473a commit 2dab6dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion json/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl<'a, D> From<&'a [InMemDicomObject<D>]> for DicomJson<&'a [InMemDicomObject<
}
}

impl<'a, D> Serialize for DicomJson<&'a [InMemDicomObject<D>]> {
impl<D> Serialize for DicomJson<&'_ [InMemDicomObject<D>]> {
/// Serializes the sequence of DICOM objects into a JSON array.
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
8 changes: 4 additions & 4 deletions json/src/ser/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<'a> From<&'a PrimitiveValue> for AsStrings<'a> {
}
}

impl<'a> Serialize for AsStrings<'a> {
impl Serialize for AsStrings<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
Expand Down Expand Up @@ -49,7 +49,7 @@ impl<'a> From<&'a PrimitiveValue> for AsNumbers<'a> {
}
}

impl<'a> Serialize for AsNumbers<'a> {
impl Serialize for AsNumbers<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
Expand Down Expand Up @@ -137,7 +137,7 @@ impl<'a> From<&'a PrimitiveValue> for InlineBinary<'a> {
}
}

impl<'a> Serialize for InlineBinary<'a> {
impl Serialize for InlineBinary<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
Expand All @@ -164,7 +164,7 @@ impl<'a> From<&'a PrimitiveValue> for AsPersonNames<'a> {
}
}

impl<'a> Serialize for AsPersonNames<'a> {
impl Serialize for AsPersonNames<'_> {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
Expand Down

0 comments on commit 2dab6dc

Please sign in to comment.