Skip to content

Commit 5588f2f

Browse files
committed
Use impl<bounds> instead of a where clause to help bindings
1 parent ad19d35 commit 5588f2f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -927,11 +927,8 @@ impl<G: Deref<Target = NetworkGraph>, T: Time> Writeable for ProbabilisticScorer
927927
}
928928
}
929929

930-
impl<G, T> ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T>
931-
where
932-
G: Deref<Target = NetworkGraph>,
933-
T: Time,
934-
{
930+
impl<G: Deref<Target = NetworkGraph>, T: Time>
931+
ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T> {
935932
#[inline]
936933
fn read<R: Read>(
937934
r: &mut R, args: (ProbabilisticScoringParameters, G)

0 commit comments

Comments
 (0)