Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guarantee success in ValueSum::from_pair. #79

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

murisi
Copy link
Contributor

@murisi murisi commented May 7, 2024

Make ValueSum::from_pair return a ValueSum instead of a Result<ValueSum, _>. This makes this frequently used function easier to use. Given that Result::Ok was always returned before, it's safe to now remove all the Result::unwraps and Result::map_errs that surrounded each ValueSum::from_pair call.

@murisi murisi force-pushed the murisi/guarantee-value-sum branch from 927948e to 9119d6e Compare May 7, 2024 16:01
@murisi murisi requested review from batconjurer and grarco May 7, 2024 16:10
@murisi murisi merged commit 8100219 into main May 15, 2024
11 of 12 checks passed
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.

3 participants