Skip to content

Revert i256 error handling changes from #4303#4318

Merged
tustvold merged 1 commit intoapache:masterfrom
tustvold:i256-error
May 31, 2023
Merged

Revert i256 error handling changes from #4303#4318
tustvold merged 1 commit intoapache:masterfrom
tustvold:i256-error

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