Skip to content

Commit

Permalink
fix: Fix typo in error enum variant (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored and AzHicham committed Sep 24, 2024
1 parent 5e3f7c7 commit 85c37a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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 @@ impl TryFrom<&ffi::DimensionsRange> for ffi::Size {
h: height / value.step_y,
})
} else {
Err(DimensionsRangeToSizeError::NegativeHeigh)
Err(DimensionsRangeToSizeError::NegativeHeight)
}
} 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

1 comment on commit 85c37a4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

philips-isyntax-rs Benchmark

Benchmark suite Current: 85c37a4 Previous: 5e3f7c7 Ratio
philips_i2syntax_read_region_256_lvl_0 1389032 ns/iter (± 79843) 1357196 ns/iter (± 101131) 1.02
philips_i2syntax_read_region_256_lvl_1 1156211 ns/iter (± 34369) 1153920 ns/iter (± 40474) 1.00
philips_i2syntax_read_region_512_lvl_0 1694506 ns/iter (± 82412) 1552160 ns/iter (± 157166) 1.09
philips_i2syntax_read_region_512_lvl_1 7430364 ns/iter (± 265940) 7397925 ns/iter (± 462154) 1.00
philips_read_region_256_lvl_0 515438 ns/iter (± 42131) 504592 ns/iter (± 40418) 1.02
philips_read_region_256_lvl_1 1255684 ns/iter (± 45033) 1246456 ns/iter (± 46479) 1.01
philips_read_region_512_lvl_0 3542377 ns/iter (± 144715) 3500861 ns/iter (± 170397) 1.01
philips_read_region_512_lvl_1 2773910 ns/iter (± 364316) 2738046 ns/iter (± 125704) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.