From 85c37a43cf5a4356cf16f21412b252af5a25798b Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Tue, 24 Sep 2024 14:42:08 +0800 Subject: [PATCH] fix: Fix typo in error enum variant (#157) --- CHANGELOG.md | 2 +- src/bindings.rs | 2 +- src/errors.rs | 2 +- tests/test_read_thumbnail.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf3f60a..868ad94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ * **deps:** update cargo ([#150](https://github.com/AzHicham/philips-isyntax-rs/issues/150)) ([0443a65](https://github.com/AzHicham/philips-isyntax-rs/commit/0443a657fae9d6270457693c3d7f0cc7924c1278)) * **deps:** update cargo to v1.0.126 ([#152](https://github.com/AzHicham/philips-isyntax-rs/issues/152)) ([c11d749](https://github.com/AzHicham/philips-isyntax-rs/commit/c11d749976e65d95bde3bdb266b68cef5ea2df99)) * **deps:** update rust crate thiserror to v1.0.62 ([#148](https://github.com/AzHicham/philips-isyntax-rs/issues/148)) ([9926ce4](https://github.com/AzHicham/philips-isyntax-rs/commit/9926ce4a516f2f815412e38ad59b711437ff1312)) -* update minimum Rust verison ([bfa4050](https://github.com/AzHicham/philips-isyntax-rs/commit/bfa4050a1adbf7763479325ee60e1a063352fdf1)) +* update minimum Rust version ([bfa4050](https://github.com/AzHicham/philips-isyntax-rs/commit/bfa4050a1adbf7763479325ee60e1a063352fdf1)) ### CI/CD diff --git a/src/bindings.rs b/src/bindings.rs index 45a9e4b..e7b74ef 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -149,7 +149,7 @@ impl TryFrom<&ffi::DimensionsRange> for ffi::Size { h: height / value.step_y, }) } else { - Err(DimensionsRangeToSizeError::NegativeHeigh) + Err(DimensionsRangeToSizeError::NegativeHeight) } } else { Err(DimensionsRangeToSizeError::NegativeWidth) diff --git a/src/errors.rs b/src/errors.rs index 090842c..d7f52ec 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -45,5 +45,5 @@ pub enum DimensionsRangeToSizeError { #[error("End X is smaller than Start X")] NegativeWidth, #[error("End Y is smaller than Start Y")] - NegativeHeigh, + NegativeHeight, } diff --git a/tests/test_read_thumbnail.rs b/tests/test_read_thumbnail.rs index 4fc0ce6..e3ef5d9 100644 --- a/tests/test_read_thumbnail.rs +++ b/tests/test_read_thumbnail.rs @@ -33,7 +33,7 @@ fn test_thumbnail( .file_stem() .expect("Invalid file name") .to_str() - .expect("Invalide file name"), + .expect("Invalid file name"), size.w )) .unwrap();