Skip to content

Refactor error handling with unwrap_or_else in CLI parsing#834

Open
cppcoffee wants to merge 1 commit into
mstange:mainfrom
cppcoffee:replace-match-unwrap-cli
Open

Refactor error handling with unwrap_or_else in CLI parsing#834
cppcoffee wants to merge 1 commit into
mstange:mainfrom
cppcoffee:replace-match-unwrap-cli

Conversation

@cppcoffee

Copy link
Copy Markdown
Contributor

Replace match statements with unwrap_or_else for port and IP address parsing to reduce boilerplate and improve readability.

Replace `match` statements with `unwrap_or_else` for port and IP address
parsing to reduce boilerplate and improve readability.
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