]> git.bitcoin.ninja Git - rust-lightning/commit
Improve TLV serialization macro callability very slightly
authorMatt Corallo <git@bluematt.me>
Mon, 5 Jul 2021 23:18:41 +0000 (23:18 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 13 Aug 2021 23:02:23 +0000 (23:02 +0000)
commit769eea8a8d706db198d7fb338f159f79ca9db652
tree43f5baf3ad8738e137ff9b24ab234afc602dd056
parentbd14069f049066007fd159be85f92c217be50f55
Improve TLV serialization macro callability very slightly

This allows decode_tlv_stream!() to be called with either a mutable
reference to a stream or a stream itself and allows
encode_tlv_stream!() to be called with an excess , at the end of
the parameter list.
lightning/src/util/ser_macros.rs