Avoid blanket implementing FeeEstimator for Deref<FeeEstimator>
authorMatt Corallo <git@bluematt.me>
Thu, 21 Jul 2022 21:38:00 +0000 (21:38 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 25 Jul 2022 18:33:10 +0000 (18:33 +0000)
commita491200f96760315fa420e433d0e60c4e6503a97
tree24a67007e369e189b0b39c0cf7106d29748d1711
parentca9357147e521a15702d1f05c687c54f9a65bf2b
Avoid blanket implementing FeeEstimator for Deref<FeeEstimator>

This simplifies things for bindings (and, to some extent,
downstream users) by exploiting the fact that we can always "clone"
a reference to a struct by dereferencing and then creating a new
reference.
fuzz/src/chanmon_consistency.rs
lightning/src/chain/chaininterface.rs
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs