Skip to content

clippy: fix if_then_some_else_none lint - #1557

Closed
xtqqczze wants to merge 1 commit into
bytecodealliance:mainfrom
xtqqczze:lint/if_then_some_else_none
Closed

xtqqczze wants to merge 1 commit into
bytecodealliance:mainfrom
xtqqczze:lint/if_then_some_else_none

Conversation

@xtqqczze

Copy link
Copy Markdown
Contributor

@sunfishcode

Copy link
Copy Markdown
Member

I have acquired a preference for avoiding .then in these kinds of functions in rustix. It makes the control flow a little harder to follow, and doesn't make the code that much easier to read.

@xtqqczze xtqqczze closed this Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants