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

Methods renamed to be idiomatic #157

Merged

Conversation

ChristopherRabotin
Copy link
Member

Closes #155

+ Duration: Rename in_seconds and in_unit to to_seconds and to_unit
+ Duration: add initializers from all units without the need of Unit
Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
Must update tests now (clippy will be upset)

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
Closes #155

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 15, 2022

Codecov Report

Base: 75.13% // Head: 78.75% // Increases project coverage by +3.62% 🎉

Coverage data is based on head (348c045) compared to base (d77da51).
Patch coverage: 37.01% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   75.13%   78.75%   +3.62%     
==========================================
  Files           9        9              
  Lines        2433     2349      -84     
==========================================
+ Hits         1828     1850      +22     
+ Misses        605      499     -106     
Impacted Files Coverage Δ
src/deprecated.rs 0.00% <0.00%> (ø)
src/lib.rs 57.14% <ø> (ø)
src/timescale.rs 97.22% <ø> (+2.62%) ⬆️
src/duration.rs 84.97% <21.73%> (+7.86%) ⬆️
src/epoch.rs 87.92% <76.02%> (+13.17%) ⬆️
src/asn1der.rs 82.55% <90.00%> (+12.28%) ⬆️
src/timeseries.rs 89.10% <100.00%> (+14.10%) ⬆️
src/python.rs
src/timeunits.rs 84.25% <0.00%> (+8.88%) ⬆️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
@ChristopherRabotin ChristopherRabotin merged commit b3f45a9 into master Oct 15, 2022
@ChristopherRabotin ChristopherRabotin deleted the 155-addreplace-methods-to-be-more-rust-idiomatic branch October 15, 2022 20:49
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.

Add/replace methods to be more Rust idiomatic
2 participants