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

ledger-tool: Move ledger output methods to output.rs #34595

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

steviez
Copy link
Contributor

@steviez steviez commented Dec 27, 2023

Summary of Changes

We have a dedicated file for CLI output, so move the various output functions there.

There is probably work to be done to clean up these output_*() functions; however, I think that should be deferred for the sake of this PR as I have another PR that I would like to have consume this one.

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (558b68b) 81.8% compared to head (8e21099) 81.8%.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #34595     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         824      824             
  Lines      222261   222261             
=========================================
- Hits       181893   181864     -29     
- Misses      40368    40397     +29     

@steviez steviez marked this pull request as ready for review December 27, 2023 14:50
@steviez steviez requested a review from CriesofCarrots January 2, 2024 20:55
CriesofCarrots
CriesofCarrots previously approved these changes Jan 3, 2024
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

Lgtm! I don't feel strongly, but if you want to import std::result::Result in output.rs, I'm happy to re-review.

ledger-tool/src/ledger_utils.rs Show resolved Hide resolved
ledger-tool/src/output.rs Outdated Show resolved Hide resolved
Copy link
Contributor Author

@steviez steviez left a comment

Choose a reason for hiding this comment

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

I rebased on tip of master to pick up latest, but only change was the extra commit to swap the "default Result"

ledger-tool/src/ledger_utils.rs Show resolved Hide resolved
ledger-tool/src/output.rs Outdated Show resolved Hide resolved
@steviez steviez merged commit 5b91e29 into solana-labs:master Jan 3, 2024
35 checks passed
@steviez steviez deleted the lt_x_move_output_functions branch January 3, 2024 15:05
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