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

Add 1.1 binary reader support for bools #753

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

nirosys
Copy link
Contributor

@nirosys nirosys commented Apr 24, 2024

Issue #, if available: #662

Description of changes:
This PR is the first in the chain of scalar value implementations, implementing the parsing of boolean values.

I've tried to keep each value type separated into its own PR, in order to keep the changes trivial and quick to review.. this is proving to be irritating, so I might merge a few.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment on lines 196 to 199
return IonResult::decoding_error(format!(
"found a boolean value with an illegal type code representation: {:?}",
invalid
))
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume that this branch can't be reached unless there's a bug, in which case I think it's ok for this to be an unreachable!("...") panic.

@nirosys nirosys marked this pull request as ready for review April 25, 2024 00:07
@nirosys nirosys merged commit 849de8e into amazon-ion:main Apr 25, 2024
25 of 26 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.

2 participants