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

Revert i256 error handling changes from #4303 #4318

Merged
merged 1 commit into from
May 31, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

I originally was intending to add non_exhaustive to the error variant, but realised none of these variants are actually exposed in the public API. I therefore opted to revert the error changes added in #4303 as they don't appear to be necessary.

What changes are included in this PR?

Are there any user-facing changes?

@tustvold tustvold requested a review from viirya May 31, 2023 11:09
@github-actions github-actions bot added the arrow Changes to the arrow crate label May 31, 2023
@tustvold tustvold changed the title Revert error handling changes from #4303 Revert i256 error handling changes from #4303 May 31, 2023
@tustvold tustvold added the development-process Related to development process of arrow-rs label May 31, 2023
}
if other == Self::MINUS_ONE && self == Self::MIN {
return Err(I256Error::DivideOverflow);
return Err(DivRemError::DivideOverflow);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, okay, we don't need new error enum as this is internal. Thanks.

@tustvold tustvold merged commit 30196d8 into apache:master May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate development-process Related to development process of arrow-rs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants