]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Use `impl<bounds>` instead of a `where` clause to help bindings 2022-03-bindings-cleanups
authorMatt Corallo <git@bluematt.me>
Mon, 21 Mar 2022 20:08:37 +0000 (20:08 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 21 Mar 2022 20:09:30 +0000 (20:09 +0000)
lightning/src/routing/scoring.rs

index c39abd1d0ff71d2f613935959007b333204371b2..d8b1740c19ec2f1ec6098fb5f941c5e387845865 100644 (file)
@@ -927,11 +927,8 @@ impl<G: Deref<Target = NetworkGraph>, T: Time> Writeable for ProbabilisticScorer
        }
 }
 
-impl<G, T> ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T>
-where
-       G: Deref<Target = NetworkGraph>,
-       T: Time,
-{
+impl<G: Deref<Target = NetworkGraph>, T: Time>
+ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T> {
        #[inline]
        fn read<R: Read>(
                r: &mut R, args: (ProbabilisticScoringParameters, G)