]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Drop redundant generic parameter bounds on ChainMonitor trait impls 2021-04-invoice-bindings
authorMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 16:46:20 +0000 (16:46 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 18:36:51 +0000 (18:36 +0000)
The ChannelSigner bounds are specified both in `impl<>` and in the
`where` clause, which the C bindings generator doesn't like. There
is no reason to have them specified twice.

lightning/src/chain/chainmonitor.rs

index 0f0958ee8c3108d8fcad942f78a5b002aab104d8..5055305d3c5d52bd9e01cc02d0934c79104f0b37 100644 (file)
@@ -144,7 +144,6 @@ where C::Target: chain::Filter,
 impl<ChannelSigner: Sign, C: Deref, T: Deref, F: Deref, L: Deref, P: Deref>
 chain::Listen for ChainMonitor<ChannelSigner, C, T, F, L, P>
 where
-       ChannelSigner: Sign,
        C::Target: chain::Filter,
        T::Target: BroadcasterInterface,
        F::Target: FeeEstimator,
@@ -172,7 +171,6 @@ where
 impl<ChannelSigner: Sign, C: Deref, T: Deref, F: Deref, L: Deref, P: Deref>
 chain::Confirm for ChainMonitor<ChannelSigner, C, T, F, L, P>
 where
-       ChannelSigner: Sign,
        C::Target: chain::Filter,
        T::Target: BroadcasterInterface,
        F::Target: FeeEstimator,