Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix typo in error enum variant #157

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
h: height / value.step_y,
})
} else {
Err(DimensionsRangeToSizeError::NegativeHeigh)
Err(DimensionsRangeToSizeError::NegativeHeight)

Check warning on line 152 in src/bindings.rs

View check run for this annotation

Codecov / codecov/patch

src/bindings.rs#L152

Added line #L152 was not covered by tests
}
} else {
Err(DimensionsRangeToSizeError::NegativeWidth)
Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
2 changes: 1 addition & 1 deletion tests/test_read_thumbnail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading