Implement `VecReadWrapper` for `MaybeReadable`
authorMatt Corallo <git@bluematt.me>
Wed, 28 Jul 2021 20:18:10 +0000 (20:18 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 16 Aug 2021 17:35:35 +0000 (17:35 +0000)
commit45490d537edb422c945e8bf20fec21b1878863de
treecc4a0d9cda7db0bb6baf922f69c9426180937978
parenta369f9e64e4e5bdc26b4d0b7bd11c3935916bb6f
Implement `VecReadWrapper` for `MaybeReadable`

This makes it much simpler to deal with `MaybeReadable` types in
`Vec`s in TLVs as we can transparently deal with them as `vec`,
with the wrapper doing the Right Thing.

This requires we implement `MaybeReadable` for all `Readable` which
has some downstream implications, but nothing too bad.
lightning/src/ln/channelmanager.rs
lightning/src/util/ser.rs
lightning/src/util/ser_macros.rs