File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -694,15 +694,15 @@ impl<G: Deref<Target = NetworkGraph>> Score for ProbabilisticScorer<G> {
694
694
if hop. short_channel_id == short_channel_id {
695
695
self . channel_liquidities
696
696
. entry ( hop. short_channel_id )
697
- . or_insert_with ( || ChannelLiquidity :: new ( ) )
697
+ . or_insert_with ( ChannelLiquidity :: new)
698
698
. as_directed_mut ( & source, & target, capacity_msat)
699
699
. failed_at_channel ( amount_msat) ;
700
700
break ;
701
701
}
702
702
703
703
self . channel_liquidities
704
704
. entry ( hop. short_channel_id )
705
- . or_insert_with ( || ChannelLiquidity :: new ( ) )
705
+ . or_insert_with ( ChannelLiquidity :: new)
706
706
. as_directed_mut ( & source, & target, capacity_msat)
707
707
. failed_downstream ( amount_msat) ;
708
708
}
@@ -727,7 +727,7 @@ impl<G: Deref<Target = NetworkGraph>> Score for ProbabilisticScorer<G> {
727
727
728
728
self . channel_liquidities
729
729
. entry ( hop. short_channel_id )
730
- . or_insert_with ( || ChannelLiquidity :: new ( ) )
730
+ . or_insert_with ( ChannelLiquidity :: new)
731
731
. as_directed_mut ( & source, & target, capacity_msat)
732
732
. successful ( amount_msat) ;
733
733
}
You can’t perform that action at this time.
0 commit comments