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

Improve clippy coverage & fix missleading .ok() usage. #131

Merged
merged 2 commits into from
Nov 10, 2023

Conversation

ithinuel
Copy link
Contributor

@ithinuel ithinuel commented Nov 9, 2023

No description provided.

`.ok()` satisfies the `must_use` without actually generating any error/panic
on failure giving a false sense that the result it being checked.

This changes occurrences of unused `.ok()` to `let _ = ` which explicitly
shows the result is being ignored.
Copy link
Member

@eldruin eldruin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@eldruin eldruin merged commit f154b66 into rust-embedded-community:master Nov 10, 2023
3 checks passed
@ithinuel ithinuel deleted the satisfy-clippy branch November 10, 2023 08:46
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