lightningdevkit / rust-lightning

A highly modular Bitcoin Lightning library written in Rust. It's rust-lightning, not Rusty's Lightning!
Other
1.15k stars 363 forks source link

Minor `gossip.rs` `rustfmt` cleanups #3341

Closed TheBlueMatt closed 5 days ago

TheBlueMatt commented 5 days ago

Just a few minor updates to gossip.rs to reduce code verticality and simplify things a bit.

codecov[bot] commented 5 days ago

Codecov Report

Attention: Patch coverage is 95.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.63%. Comparing base (053281f) to head (bc5213d). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/routing/gossip.rs 95.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3341 +/- ## ========================================== - Coverage 89.66% 89.63% -0.03% ========================================== Files 126 126 Lines 103226 103168 -58 Branches 103226 103168 -58 ========================================== - Hits 92555 92479 -76 - Misses 7954 7968 +14 - Partials 2717 2721 +4 ``` | [Flag](https://app.codecov.io/gh/lightningdevkit/rust-lightning/pull/3341/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightningdevkit) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/lightningdevkit/rust-lightning/pull/3341/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightningdevkit) | `89.63% <95.00%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightningdevkit#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.