-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix manual_unwrap_or
false positive
#13061
Conversation
74c40db
to
31db1d5
Compare
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.
@tesuji Do you want to look into the FIXME in this PR?
I kinda think that FIXME about using dereferecing module is more like a question rather than an improvement. |
042cef1
to
b19513c
Compare
with `Option::unwrap_or(self, T) -> T`.
b19513c
to
c46c1f6
Compare
Also cc rust-lang/rust#127629. In the future, I may try to suggest map_or instead unwrap_or. |
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
changelog: [
manual_unwrap_or
]: fix false positive ofif let Option<T>
Closes #13018