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

Replace anyhow with concrete error type (via thiserror) #16

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

FreezyLemon
Copy link
Contributor

@FreezyLemon FreezyLemon commented Jan 29, 2024

I also added some docs on the public types (cargo doc --open is still looking a bit sad, I think I might add some docs to yuvxyb).

The new MSRV 1.65 was released in November 2022 which should be fine IMHO. It allows us to use let-else syntax which looks a bit nicer than .map_err(|_| /* our error */)?;

The inversion of trait bounds (T: TryInto<LinearRgb> -> LinearRgb: TryFrom<T>) shouldn't cause any problems. It's technically breaking (no-std environments don't have blanket T: TryInto<U> for all U: TryFrom<T> AFAIK) but practically isn't. (I preferred TryFrom over TryInto because it's what yuvxyb actually implements.)

The concrete error type is an actual breaking change though.

Also bumped MSRV to 1.65 for let-else. 1.65.0 is >1y old at
this point, so it should be fine.
@shssoichiro shssoichiro merged commit e27f97a into rust-av:main Jan 30, 2024
1 check passed
@FreezyLemon FreezyLemon deleted the replace-anyhow-with-thiserror branch January 30, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants