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 'static bound from traits and impls #1597

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

HeroicKatora
Copy link
Member

The 'from traits' part is the breaking change. Downstream consumers
could have previously made use of this additional bound.

This is not required, we never utilize types &'static [Subpixel] or
similar and if we would then it could be a local bound. But the bound is
infectious in that it requires placing several additional bounds in
every place where the Pixel trait is being used.

This does not clean up all usage sites (in imageops).

The 'from traits' part is the breaking change. Downstream consumers
could have previously made use of this additional bound.

This is not required, we never utilize types `&'static [Subpixel]` or
similar and if we would then it could be a local bound. But the bound is
infectious in that it requires placing several additional bounds in
every place where the `Pixel` trait is being used.
@HeroicKatora HeroicKatora mentioned this pull request Oct 31, 2021
22 tasks
@HeroicKatora HeroicKatora merged commit fa82b5e into image-rs:master Nov 1, 2021
@HeroicKatora HeroicKatora deleted the no-static-pixel branch November 1, 2021 00:29
@HeroicKatora HeroicKatora mentioned this pull request Nov 1, 2021
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