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

Use Handled instead of bools. #1298

Merged
merged 5 commits into from
Oct 11, 2020
Merged

Use Handled instead of bools. #1298

merged 5 commits into from
Oct 11, 2020

Conversation

jneem
Copy link
Collaborator

@jneem jneem commented Oct 10, 2020

This makes some "is this event handled"-style return types more typey, and it also includes a better fix for #1279. I originally went with Handled::Handled and Handled::Unhandled, but it seemed a bit redundant.

Copy link
Collaborator

@luleyleo luleyleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for getting this done, I tried before but could not decide what to call the enum variants 😅

I do have a bunch of nits, but those aside I'm happy to get this merged.

druid/src/util.rs Outdated Show resolved Hide resolved
druid/src/util.rs Outdated Show resolved Hide resolved
druid/src/app_delegate.rs Outdated Show resolved Hide resolved
druid/src/win_handler.rs Outdated Show resolved Hide resolved
@jneem jneem merged commit e6bba98 into linebender:master Oct 11, 2020
@jneem
Copy link
Collaborator Author

jneem commented Oct 11, 2020

Thanks for the review! I'm not sure that these names are the best either, but even imperfect names are better than bool...

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