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 #[must_use] annotations #325

Merged
merged 3 commits into from
Apr 2, 2022
Merged

Conversation

richardeoin
Copy link
Member

Use of this attribute was expanded in the standard library in Rust 1.58, and there is now a clippy lint.

Silence the lint for REC methods, since dropping the REC is intended.
Also silence the lint for GPIO modifiers (set_speed) since these are also often dropped.

Use of this attribute was [expanded in the standard
library](https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html#more-must_use-in-the-standard-library)
in Rust 1.58, there is now a [clippy
lint](https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use)

Silence the lint for REC methods, since dropping the REC is intended

Also silence the lint for GPIO modifiers (set_speed) since these are also often dropped
@richardeoin
Copy link
Member Author

bors r+

@bors bors bot merged commit 3e8091c into stm32-rs:master Apr 2, 2022
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