clippy: fix manual_let_else lint#690
Conversation
|
Why are you separating all of these into separate PRs? Also, what justification do you have for fixing these in this project when they're not clippy-default lints, since that means they're not recommended for general use, and mostly just preference? |
|
I prefer to keep PRs small and not mix unrelated changes, it’s usually easier to review too. It avoids conflating independent discussions, and if one change needs revision, it doesn’t block the others. As for the pedantic lints, they can still catch patterns that affect readability or maintainability. In the case of |
|
That makes sense, although they are non-default for a reason. In this case, it actually looks like it might make sense to use the |
|
Good idea! I’ve opened #693 since the changes turned out to be a bit more involved. I’ll mark this PR as draft for now due to conflicts. |
92ea47d to
3027ac0
Compare
|
Looking at the new version, I guess this is okay to merge. I'm kind of indifferent on this style and don't think that let-else is strictly an improvement, and there's a reason why clippy doesn't make this lint default. Will let someone else merge if they think it's an improvement. |
3027ac0 to
3f15a02
Compare
Yeah, separate PRs aren't ideal when they create merge conflicts in |
https://rust-lang.github.io/rust-clippy/master/index.html#manual_let_else