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

Annotate Command and Subscription with #[must_use] #1676

Merged
merged 1 commit into from Jan 27, 2023

Conversation

ids1024
Copy link
Contributor

@ids1024 ids1024 commented Jan 27, 2023

Calling a function returning one of these types without using it is almost certainly a mistake. Luckily Rust's #[must_use] can help warn about this.

Calling a function returning one of these types without using it is
almost certainly a mistake. Luckily Rust's `#[must_use]` can help warn
about this.
@ids1024
Copy link
Contributor Author

ids1024 commented Jan 27, 2023

I guess the clippy error is unrelated and added in Rust 1.67.

@hecrj hecrj added the improvement An internal improvement label Jan 27, 2023
@hecrj hecrj added this to the 0.8.0 milestone Jan 27, 2023
@hecrj
Copy link
Member

hecrj commented Jan 27, 2023

Sweet!

@hecrj hecrj merged commit 818ae49 into iced-rs:master Jan 27, 2023
@13r0ck 13r0ck mentioned this pull request Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants