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

Removes Coefficient and Sign from the root #599

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Conversation

zslayton
Copy link
Contributor

Removes the re-export of Sign and Coefficient from the crate root. They can still be accessed at: ion_rs::decimal::coefficient::{Coefficient, Sign}.

Fixes #586.

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

@zslayton zslayton requested a review from popematt July 12, 2023 20:23
@codecov
Copy link

codecov bot commented Jul 12, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@1a7eaca). Click here to learn what that means.
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #599   +/-   ##
=======================================
  Coverage        ?   82.39%           
=======================================
  Files           ?      111           
  Lines           ?    19552           
  Branches        ?    19552           
=======================================
  Hits            ?    16110           
  Misses          ?     1899           
  Partials        ?     1543           
Impacted Files Coverage Δ
src/binary/decimal.rs 89.15% <ø> (ø)
src/element/writer.rs 73.33% <ø> (ø)
src/lib.rs 33.33% <ø> (ø)
src/text/parsers/decimal.rs 97.41% <ø> (ø)
src/types/decimal/coefficient.rs 89.09% <ø> (ø)
src/types/decimal/mod.rs 91.09% <ø> (ø)
src/types/mod.rs 96.49% <ø> (ø)
src/binary/int.rs 76.10% <100.00%> (ø)
src/types/timestamp.rs 85.96% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines -16 to +21
/// Serializes a single [`Element`] at the current depth of the writer.
fn write_element(&mut self, element: &Element) -> IonResult<()>;

/// Serializes a single [`Value`] at the current depth of the writer.
// TODO: consider extracting this to a ValueWriter trait.
fn write_value(&mut self, value: &Value) -> IonResult<()>;

/// Serializes a single [`Element`] at the current depth of the writer.
fn write_element(&mut self, element: &Element) -> IonResult<()>;

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intentionally part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops! The change was intentional, but not meant for this PR. Good eye.

@zslayton zslayton merged commit dab57c1 into main Jul 12, 2023
@zslayton zslayton deleted the move-coefficient-and-sign branch July 12, 2023 20:35
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.

Consider renaming or name-spacing supporting types
2 participants