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

feat!: derive Copy on TuiWidgetEvent and TuiLoggerLevelOutput #55

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

joshka
Copy link
Contributor

@joshka joshka commented Feb 4, 2024

These enums are small and simple enough to be Copy. This change
simplifies calling code to not have to use & when passing or
comparing these enums.

See https://doc.rust-lang.org/std/marker/trait.Copy.html#when-should-my-type-be-copy
for justification.

BREAKING CHANGE: TuiWidgetEvent::transition() method now takes a
TuiWidgetEvent by value instead of by reference.

These enums are small and simple enough to be `Copy`. This change
simplifies calling code to not have to use `&` when passing or
comparing these enums.

See https://doc.rust-lang.org/std/marker/trait.Copy.html#when-should-my-type-be-copy
for justification.

BREAKING CHANGE: `TuiWidgetEvent::transition()` method now takes a
`TuiWidgetEvent` by value instead of by reference.
@gin66 gin66 merged commit f4b4f9f into gin66:master Feb 4, 2024
@joshka joshka deleted the enum-copy branch April 1, 2024 19:26
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

2 participants