[minor] Add Display to Payment ID types#2492
[minor] Add Display to Payment ID types#2492valentinewallace merged 4 commits intolightningdevkit:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2492 +/- ##
==========================================
- Coverage 90.59% 90.53% -0.07%
==========================================
Files 106 107 +1
Lines 56525 56923 +398
Branches 56525 56923 +398
==========================================
+ Hits 51207 51533 +326
- Misses 5318 5390 +72 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TheBlueMatt
left a comment
There was a problem hiding this comment.
LGTM, except the allocations.
|
Feel free to squash the fixup commit down into the original commit to not have two commits back-to-back that edit the same code. |
a1fcce7 to
5c63c25
Compare
5c63c25 to
ad2cd84
Compare
|
Rebased and reorganized commits, as suggested, to avoid touching the same code from multiple commits. Commits: add Display to PaymentHash (most frequently used), adapt logging, add Display to PaymentId and PaymentPreimage, adapt logging. |
|
Missed a few in |
ad2cd84 to
4146264
Compare
Indeed, good catch! I've searched through all |
|
looks good! |
Minor convenience/housekeeping change:
Displaytrait toPaymentHash,PaymentId,PaymentPreimagelog_bytes!()Almost all remaining
log_bytes!usage is forChannelId, which is addressed in #2485 .(The
log_bytes!macro is OK, but its usage suggests non-type-safe usage, plus it reduces readablity a bit).