Use Option::filter instead of open-coding it#77882
Use Option::filter instead of open-coding it#77882LingMan wants to merge 1 commit intorust-lang:masterfrom
Conversation
|
r? @estebank (rust_highfive has picked a reviewer for you, use r? to override) |
73586b7 to
b1e8fe1
Compare
|
☔ The latest upstream changes (presumably #77135) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
b1e8fe1 to
5c1e5cb
Compare
|
I am not a maintainer of this particular code section, but the new version looks significantly less readable to me. cc @matklad @petrochenkov as well |
|
Yeah, I also don't think this is an improvement. Although the high-level semantic here is indeed that of Thanks for the PR anyway, @LingMan, it's useful to see two versions side by side to better understand which one is better! |
|
Huh, interesting. I find it more readable because there's less brain power spent on deciphering the high-level semantic and more focus on what's relevant. |
No description provided.