Skip to content

refactor: flatten nested match for user lookup#6

Open
LudWittg wants to merge 1 commit intoDcodingTheWeb:masterfrom
LudWittg:patch-1
Open

refactor: flatten nested match for user lookup#6
LudWittg wants to merge 1 commit intoDcodingTheWeb:masterfrom
LudWittg:patch-1

Conversation

@LudWittg
Copy link

Refactored the nested match for the getpwnam result into a single match block using Ok(Some(x)) and Ok(None). The functionality remains 100% identical. This just improves readability/makes the code more concise.

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.

1 participant