From d2d538d7e5ddd487f25f8802c4dadc87e5d65182 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Wed, 11 Dec 2024 09:31:53 +0800 Subject: [PATCH] Fix typos --- object/src/file.rs | 11 ++++++++++- object/src/lib.rs | 2 +- object/src/ops.rs | 2 +- storescp/src/store_async.rs | 4 ++-- storescp/src/store_sync.rs | 4 ++-- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/object/src/file.rs b/object/src/file.rs index 9748d653c..7c0ed4afa 100644 --- a/object/src/file.rs +++ b/object/src/file.rs @@ -103,7 +103,7 @@ impl OpenFileOptions { } /// Set the transfer syntax index to use when reading the file. - pub fn tranfer_syntax_index(self, ts_index: Tr) -> OpenFileOptions + pub fn transfer_syntax_index(self, ts_index: Tr) -> OpenFileOptions where Tr: TransferSyntaxIndex, { @@ -116,6 +116,15 @@ impl OpenFileOptions { } } + /// Set the transfer syntax index to use when reading the file. + #[deprecated(since="0.8.1", note="please use `transfer_syntax_index` instead")] + pub fn tranfer_syntax_index(self, ts_index: Tr) -> OpenFileOptions + where + Tr: TransferSyntaxIndex, + { + self.transfer_syntax_index(ts_index) + } + /// Set the data element dictionary to use when reading the file. pub fn dictionary(self, dict: Di) -> OpenFileOptions where diff --git a/object/src/lib.rs b/object/src/lib.rs index abbd84227..e84bb632f 100644 --- a/object/src/lib.rs +++ b/object/src/lib.rs @@ -351,7 +351,7 @@ impl AccessError { #[non_exhaustive] #[snafu(visibility(pub(crate)))] pub enum AtAccessError { - /// Missing itermediate sequence for {selector} at step {step_index} + /// Missing intermediate sequence for {selector} at step {step_index} MissingSequence { selector: AttributeSelector, step_index: u32, diff --git a/object/src/ops.rs b/object/src/ops.rs index 9a514a8d9..343911a8e 100644 --- a/object/src/ops.rs +++ b/object/src/ops.rs @@ -15,7 +15,7 @@ use crate::FileDicomObject; #[non_exhaustive] #[snafu(visibility(pub(crate)))] pub enum ApplyError { - /// Missing itermediate sequence for {selector} at step {step_index} + /// Missing intermediate sequence for {selector} at step {step_index} MissingSequence { selector: AttributeSelector, step_index: u32, diff --git a/storescp/src/store_async.rs b/storescp/src/store_async.rs index 02d6545c6..4e40c08dc 100644 --- a/storescp/src/store_async.rs +++ b/storescp/src/store_async.rs @@ -83,7 +83,7 @@ pub async fn run_store_async( } else if data_value.value_type == PDataValueType::Command && data_value.is_last { - // commands are always in implict VR LE + // commands are always in implicit VR LE let ts = dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN .erased(); @@ -193,7 +193,7 @@ pub async fn run_store_async( info!("Stored {}", file_path.display()); // send C-STORE-RSP object - // commands are always in implict VR LE + // commands are always in implicit VR LE let ts = dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN .erased(); diff --git a/storescp/src/store_sync.rs b/storescp/src/store_sync.rs index d8fc8ec40..4162f0646 100644 --- a/storescp/src/store_sync.rs +++ b/storescp/src/store_sync.rs @@ -81,7 +81,7 @@ pub fn run_store_sync(scu_stream: TcpStream, args: &App) -> Result<(), Whatever> } else if data_value.value_type == PDataValueType::Command && data_value.is_last { - // commands are always in implict VR LE + // commands are always in implicit VR LE let ts = dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN .erased(); @@ -191,7 +191,7 @@ pub fn run_store_sync(scu_stream: TcpStream, args: &App) -> Result<(), Whatever> info!("Stored {}", file_path.display()); // send C-STORE-RSP object - // commands are always in implict VR LE + // commands are always in implicit VR LE let ts = dicom_transfer_syntax_registry::entries::IMPLICIT_VR_LITTLE_ENDIAN .erased();