Skip to content

Conversation

@jobarr-amzn
Copy link
Contributor

Description of changes:

I played around with this function a bit to refresh my memory of what functionality was available in Rust for working with Option and Result, and how the various ion-rs APIs work.

This phrasing is shorter and easy to read.


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

Copy link
Contributor

@Shaurya0108 Shaurya0108 left a comment

Choose a reason for hiding this comment

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

Provides fallback using unwrap_or(element) and is easier to read, looks great!

@jobarr-amzn jobarr-amzn merged commit 9ef1058 into amazon-ion:main Oct 1, 2025
0 of 3 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