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

breaking change: Remove unused type parameters from enum case #514

Merged
merged 6 commits into from Aug 25, 2023
Merged

Conversation

yhara
Copy link
Collaborator

@yhara yhara commented Aug 25, 2023

This PR removes unused type parameters from enum cases. For example, Result::Fail<V> is changed to just Result::Fail because Fail does not depend on V.

enum Result<V>
  case Ok(value: V)
  case Fail(err: Error)

- before: `Result::Fail<V> : Result<V>`
- after: `Result::Fail : Result<Never>`

Removed type parameters of an enum case which are not used in the
constructor parameters.
@yhara yhara merged commit 64d5708 into main Aug 25, 2023
4 checks passed
@yhara yhara deleted the fail-tyarg branch August 25, 2023 08:06
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.

None yet

1 participant