]> git.bitcoin.ninja Git - rust-lightning/commit
Don't require import of internal macros
authorElias Rohrer <dev@tnull.de>
Thu, 17 Aug 2023 08:50:23 +0000 (10:50 +0200)
committerElias Rohrer <dev@tnull.de>
Thu, 17 Aug 2023 08:50:23 +0000 (10:50 +0200)
commit7e270cbae99a6dbc187558618f21721bbfa4aca9
tree7989854cbe5a8f46a329d56c2bd1e77c6a02599b
parentf609fcf8fbc41f3489da3a797bfe1053e84eeb07
Don't require import of internal macros

Commit f560320b 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.
lightning/src/util/ser_macros.rs