Skip to content

Commit

Permalink
[storescu] Box WriteError in Error::CreateCommand
Browse files Browse the repository at this point in the history
to reduce inline value size
  • Loading branch information
Enet4 committed Mar 10, 2024
1 parent 73d539d commit 4396f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storescu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ enum Error {
},

/// Could not construct DICOM command
CreateCommand { source: dicom_object::WriteError },
CreateCommand { source: Box<dicom_object::WriteError> },

/// Unsupported file transfer syntax {uid}
UnsupportedFileTransferSyntax { uid: std::borrow::Cow<'static, str> },
Expand Down Expand Up @@ -262,6 +262,7 @@ fn run() -> Result<(), Error> {
&mut cmd_data,
&dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN.erased(),
)
.map_err(Box::from)
.context(CreateCommandSnafu)?;

let mut object_data = Vec::with_capacity(2048);
Expand Down

0 comments on commit 4396f48

Please sign in to comment.