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

Remove ImageError::UnsupportedColor, improve readability of DecoderErrors #1204

Merged
merged 4 commits into from
Apr 19, 2020

Conversation

nabijaczleweli
Copy link
Member

@nabijaczleweli nabijaczleweli commented Apr 18, 2020

Remove ImageError::UnsupportedColor usage from DynImage, farbfeld, flat, PNG and the constructor. Add .into() -> ImageError for the rest of private DecoderErrors.

Only TGA left, with #1145.

Part of #1134
Ref: #1203

@nabijaczleweli nabijaczleweli changed the title Remove ImageError::UnsupportedColor() in general and from DynImage, farbfeld, flat, PNG. Remove ::UnsupportedColor() in general and from flat. Add .into() -> ImageError for DecoderErrors Remove ImageError::UnsupportedColor() in general and from DynImage, farbfeld, flat, PNG. Remove ::UnsupportedColor() in general and from flat. Add .into() -> ImageError for the rest of DecoderErrors Apr 18, 2020
@HeroicKatora HeroicKatora changed the title Remove ImageError::UnsupportedColor() in general and from DynImage, farbfeld, flat, PNG. Remove ::UnsupportedColor() in general and from flat. Add .into() -> ImageError for the rest of DecoderErrors Remove ImageError::UnsupportedColor, improve readability of DecoderErrors Apr 18, 2020
@HeroicKatora
Copy link
Member

In the future, a title with the length of a full paragraph indicates that breaking the PR into independent pieces would be easier to review.

@HeroicKatora HeroicKatora merged commit a304885 into image-rs:master Apr 19, 2020
@nabijaczleweli nabijaczleweli deleted the sunshine branch April 19, 2020 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants