Skip to content

Commit 9f1660e

Browse files
committed
Use impl<bounds> instead of a where clause to help bindings
1 parent 34205af commit 9f1660e

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
@@ -844,11 +844,8 @@ impl<G: Deref<Target = NetworkGraph>, T: Time> Writeable for ProbabilisticScorer
844844
}
845845
}
846846

847-
impl<G, T> ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T>
848-
where
849-
G: Deref<Target = NetworkGraph>,
850-
T: Time,
851-
{
847+
impl<G: Deref<Target = NetworkGraph>, T: Time>
848+
ReadableArgs<(ProbabilisticScoringParameters, G)> for ProbabilisticScorerUsingTime<G, T> {
852849
#[inline]
853850
fn read<R: Read>(
854851
r: &mut R, args: (ProbabilisticScoringParameters, G)

0 commit comments

Comments
 (0)