Skip to content

Commit

Permalink
[json] Clippy lint fix
Browse files Browse the repository at this point in the history
- needless borrow
  • Loading branch information
Enet4 committed Jul 5, 2024
1 parent 4c03758 commit f43442a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn to_value<T>(data: T) -> Result<serde_json::Value, serde_json::Error>
where
DicomJson<T>: From<T> + Serialize,
{
serde_json::to_value(&DicomJson::from(data))
serde_json::to_value(DicomJson::from(data))
}

/// Serialize a piece of DICOM data to a vector of bytes.
Expand Down

0 comments on commit f43442a

Please sign in to comment.