-
Notifications
You must be signed in to change notification settings - Fork 1.8k
{option,result}_map_unit_fn
: fix and clean-up tests, make suggestions multiline
#15871
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
base: master
Are you sure you want to change the base?
Conversation
0d05b6c
to
a981893
Compare
option_map_unit_fn
: fix and clean-up tests, make suggestions multiline{option,result}_map_unit_fn
: fix and clean-up tests, make suggestions multiline
| | ||
= note: `-D clippy::option-map-unit-fn` implied by `-D warnings` | ||
= help: to override `-D warnings` add `#[allow(clippy::option_map_unit_fn)]` | ||
help: try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help message needs to be changed to something useful (e.g. 'use an if let
instead'). "try" is only used with inline suggestions because longer messages looked bad.
The errors were unrelated to the lint...
a981893
to
3b7b05c
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
@rustbot ready |
3b7b05c
to
71d17de
Compare
- make them `verbose` -- the ones spanning multiple lines were especially egregious - give a more descriptive help message
71d17de
to
98db098
Compare
changelog: none