@@ -64,7 +64,7 @@ impl< G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref, SP: Sized, Sc: Sco
6464 payer : & PublicKey ,
6565 params : & RouteParameters ,
6666 first_hops : Option < & [ & ChannelDetails ] > ,
67- inflight_htlcs : & InFlightHtlcs
67+ inflight_htlcs : InFlightHtlcs
6868 ) -> Result < Route , LightningError > {
6969 let random_seed_bytes = {
7070 let mut locked_random_seed_bytes = self . random_seed_bytes . lock ( ) . unwrap ( ) ;
@@ -73,7 +73,7 @@ impl< G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref, SP: Sized, Sc: Sco
7373 } ;
7474 find_route (
7575 payer, params, & self . network_graph , first_hops, & * self . logger ,
76- & ScorerAccountingForInFlightHtlcs :: new ( self . scorer . lock ( ) . deref_mut ( ) , inflight_htlcs) ,
76+ & ScorerAccountingForInFlightHtlcs :: new ( self . scorer . lock ( ) . deref_mut ( ) , & inflight_htlcs) ,
7777 & self . score_params ,
7878 & random_seed_bytes
7979 )
@@ -85,13 +85,13 @@ pub trait Router {
8585 /// Finds a [`Route`] between `payer` and `payee` for a payment with the given values.
8686 fn find_route (
8787 & self , payer : & PublicKey , route_params : & RouteParameters ,
88- first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : & InFlightHtlcs
88+ first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : InFlightHtlcs
8989 ) -> Result < Route , LightningError > ;
9090 /// Finds a [`Route`] between `payer` and `payee` for a payment with the given values. Includes
9191 /// `PaymentHash` and `PaymentId` to be able to correlate the request with a specific payment.
9292 fn find_route_with_id (
9393 & self , payer : & PublicKey , route_params : & RouteParameters ,
94- first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : & InFlightHtlcs ,
94+ first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : InFlightHtlcs ,
9595 _payment_hash : PaymentHash , _payment_id : PaymentId
9696 ) -> Result < Route , LightningError > {
9797 self . find_route ( payer, route_params, first_hops, inflight_htlcs)
@@ -112,7 +112,7 @@ pub struct ScorerAccountingForInFlightHtlcs<'a, S: Score<ScoreParams = SP>, SP:
112112
113113impl < ' a , S : Score < ScoreParams = SP > , SP : Sized > ScorerAccountingForInFlightHtlcs < ' a , S , SP > {
114114 /// Initialize a new `ScorerAccountingForInFlightHtlcs`.
115- pub fn new ( scorer : & ' a mut S , inflight_htlcs : & ' a InFlightHtlcs ) -> Self {
115+ pub fn new ( scorer : & ' a mut S , inflight_htlcs : & ' a InFlightHtlcs ) -> Self {
116116 ScorerAccountingForInFlightHtlcs {
117117 scorer,
118118 inflight_htlcs
0 commit comments