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

Add a #[must_use] directive to add_timer() #774

Merged
merged 1 commit into from
May 17, 2018
Merged

Add a #[must_use] directive to add_timer() #774

merged 1 commit into from
May 17, 2018

Conversation

fredmorcos
Copy link
Contributor

If the result of add_timer is unused, the timer will be dropped immediately and the callback won't fire. A small gotcha, and this change can save some debugging time.

If the result of add_timer is unused, the timer will be dropped immediately and the callback won't fire. A small gotcha but can save some debugging time.
@Cobrand
Copy link
Member

Cobrand commented May 17, 2018

Thanks!

@Cobrand Cobrand merged commit 8a3fd3b into Rust-SDL2:master May 17, 2018
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