]> git.bitcoin.ninja Git - rust-lightning/commit
Stop relying on `Hash{Set,Map}::from_iter` directly
authorMatt Corallo <git@bluematt.me>
Thu, 18 Jan 2024 20:27:57 +0000 (20:27 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 2 Feb 2024 18:04:51 +0000 (18:04 +0000)
commitefbaa41fae811bea2c004799f7e36c2882941985
tree0046a5ee1c9961346063d06c7d119cfac2ee6b9d
parent3e0d55bd2b96ea10ecc744d4cbd9bbfc1ad4ef50
Stop relying on `Hash{Set,Map}::from_iter` directly

In the next commit we'll bump the `hashbrown` version, which no
longer randomizes its hasher by default. Thus, we'll need to call
a different constructor in no-std builds from std builds.

Here we do a quick prefactor to use wrappers for `FromIterator`
constructors instead of calling the tables directly to make the
version bump changeset smaller.
lightning/src/chain/chainmonitor.rs
lightning/src/lib.rs
lightning/src/ln/channelmanager.rs