]> git.bitcoin.ninja Git - rust-lightning/commit
Simplify Readable mutability.
authorArik Sosman <git@arik.io>
Wed, 14 Aug 2024 21:25:56 +0000 (14:25 -0700)
committerArik Sosman <git@arik.io>
Fri, 16 Aug 2024 16:23:09 +0000 (09:23 -0700)
commitd1767cdedfa1cf124cb43abeb00c74e2b43afc8d
treece963fa2ad6b36654b4db9d2951b87a0f2ff6ed8
parent5ab40b2f3c3bb18c4a420ea18a889df8d7a37863
Simplify Readable mutability.

In anticipation of the rust-bitcoin upgrade, which incorporates its
own `io::Read` implementation, we need to make our usage compatible
with dropping `std::io` and `core2::io`.

Notably, in version 0.32.2, `bitcoin::io`'s `Read` is no longer
implemented for `&mut R where R: Read + ?Sized`, which results in
errors anytime `&mut &mut Readable` is passed instead of
`&mut Readable`.

This commit fixes those instances.
lightning-rapid-gossip-sync/src/processing.rs
lightning/src/blinded_path/mod.rs
lightning/src/crypto/streams.rs
lightning/src/lib.rs
lightning/src/ln/msgs.rs
lightning/src/util/ser.rs
lightning/src/util/ser_macros.rs