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

Don't require import of internal macro for impl_writeable_tlv_based #2506

Merged

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Aug 17, 2023

Commit f560320 introduced changes that require users of impl_writeable_tlv_based/impl_writeable_tlv_based_enum to import _encode_varint_length_prefixed_tlv and alloc separately.

Here, we take care of the necessary imports in
_encode_varint_length_prefixed_tlv itself, allowing users to just import the impl_writeable_tlv_based variant they need.

Commit f560320 introduced changes that require users of
`impl_writeable_tlv_based`/`impl_writeable_tlv_based_enum` to import
`_encode_varint_length_prefixed_tlv` and `alloc` separately.

Here, we take care of the necessary imports in
`_encode_varint_length_prefixed_tlv` itself, allowing users to just
import the `impl_writeable_tlv_based` variant they need.
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (f609fcf) 90.39% compared to head (7e270cb) 90.38%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2506      +/-   ##
==========================================
- Coverage   90.39%   90.38%   -0.01%     
==========================================
  Files         106      106              
  Lines       56269    56268       -1     
  Branches    56269    56268       -1     
==========================================
- Hits        50862    50860       -2     
- Misses       5407     5408       +1     
Files Changed Coverage Δ
lightning/src/util/ser_macros.rs 75.08% <ø> (+0.24%) ⬆️

... and 2 files with indirect coverage changes

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

@TheBlueMatt TheBlueMatt merged commit d4ad826 into lightningdevkit:main Aug 17, 2023
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.

5 participants