]> git.bitcoin.ninja Git - rust-lightning/commit
Don't initialise Vecs being read with VecReadWrapper explicitly
authorMatt Corallo <git@bluematt.me>
Sun, 1 Aug 2021 02:34:08 +0000 (02:34 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 24 Aug 2021 17:08:41 +0000 (17:08 +0000)
commitefa579bc61eafaae509657e57c6442c0c9229915
treea67de2673bc45b28fa631856a7bc6d302510a165
parent2ced708b71600e99e53ef526d5b4508c784208f9
Don't initialise Vecs being read with VecReadWrapper explicitly

This simplifies the tlv serialization read macro somewhat by
allowing callsites to simply read into an `Option<Vec>` instead of
needing to read into an `Option<VecReadWrapper>` when using
`vec_type`.
lightning/src/util/ser_macros.rs