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

Unused io amount detects .read().ok()? #7100

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

ABouttefeux
Copy link
Contributor

fixes #7096
changelog: unused_io_amount now detect expertion like .read().ok()?, .read().or_else(|err| ...)? and similar expressions.

@rust-highfive
Copy link

r? @camsteffen

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 16, 2021
clippy_lints/src/unused_io_amount.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@camsteffen camsteffen left a comment

Choose a reason for hiding this comment

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

Much better! Please squash your commits.

@camsteffen
Copy link
Contributor

Please don't reference the squashed commits in the commit message. I believe those commits can become garbage collected (unavailable) in the future, and there is no need to record the PR review history. Though we would keep commits separate if there are multiple, distinct changes in the PR.

@camsteffen
Copy link
Contributor

@bors r+ thanks!

@bors
Copy link
Contributor

bors commented Apr 22, 2021

📌 Commit 5625d58 has been approved by camsteffen

@bors
Copy link
Contributor

bors commented Apr 22, 2021

⌛ Testing commit 5625d58 with merge 0ab7acc...

@bors
Copy link
Contributor

bors commented Apr 22, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: camsteffen
Pushing 0ab7acc to master...

@bors bors merged commit 0ab7acc into rust-lang:master Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.read().ok() does not trigger unused_io_amount warning
4 participants