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 Sep 24, 2024
1 parent a3ea8d9 commit 3227604
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 3227604

@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: 3227604 Previous: c929fff Ratio
philips_i2syntax_read_region_256_lvl_0 1364575 ns/iter (± 115355) 1361649 ns/iter (± 55947) 1.00
philips_i2syntax_read_region_256_lvl_1 1167734 ns/iter (± 43405) 1165858 ns/iter (± 64534) 1.00
philips_i2syntax_read_region_512_lvl_0 1561243 ns/iter (± 66932) 1579088 ns/iter (± 50537) 0.99
philips_i2syntax_read_region_512_lvl_1 7378150 ns/iter (± 456643) 7437832 ns/iter (± 382315) 0.99
philips_read_region_256_lvl_0 508489 ns/iter (± 27276) 516789 ns/iter (± 54611) 0.98
philips_read_region_256_lvl_1 1241770 ns/iter (± 55329) 1270381 ns/iter (± 98449) 0.98
philips_read_region_512_lvl_0 3625588 ns/iter (± 398970) 3610729 ns/iter (± 192869) 1.00
philips_read_region_512_lvl_1 2740300 ns/iter (± 152691) 3196911 ns/iter (± 167831) 0.86

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

Please sign in to comment.