Skip to content

Remove low-hanging fruit rustfmt::skips in Channel #3854

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

valentinewallace
Copy link
Contributor

Based on #3809, in the same spirit as #3844 and #3850

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jun 12, 2025

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

Attention: Patch coverage is 77.39130% with 52 lines in your changes missing coverage. Please review.

Project coverage is 89.91%. Comparing base (3333b6d) to head (c356070).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/channel.rs 77.39% 50 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3854      +/-   ##
==========================================
- Coverage   89.94%   89.91%   -0.03%     
==========================================
  Files         163      163              
  Lines      131655   131753      +98     
  Branches   131655   131753      +98     
==========================================
+ Hits       118421   118472      +51     
- Misses      10550    10590      +40     
- Partials     2684     2691       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

joostjager
joostjager previously approved these changes Jun 13, 2025
Copy link
Contributor

@joostjager joostjager left a comment

Choose a reason for hiding this comment

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

LGTM after rebase

@valentinewallace valentinewallace dismissed joostjager’s stale review June 13, 2025 06:59

The merge-base changed after approval.

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

rustfmt::skips were added recently all over channel.rs in order for formatting
to be enforced for all new code added to the file.

Here we remove a bunch of those skips that aren't necessary because the methods
that are skipped are so short.

Does not include cfg(splicing) code.

Here we just remove the rustfmt skips, in the next commit we'll clean up the
code that rustfmt made too vertical.
In the previous commit we formatted a bunch of short methods. Here we clean up
the default formatting that rustfmt applied by extracting code into variables.
@valentinewallace valentinewallace force-pushed the 2025-05-chan-fmt-followup branch from 1b96fd1 to c356070 Compare June 13, 2025 13:54
@valentinewallace
Copy link
Contributor Author

Rebased

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.

3 participants