@@ -236,7 +236,7 @@ impl ChannelState {
236
236
/// reported.
237
237
fn add_outgoing_htlc ( & mut self , hash : PaymentHash , htlc : Htlc ) -> Result < ( ) , ForwardingError > {
238
238
self . check_outgoing_addition ( & htlc) ?;
239
- if self . in_flight . get ( & hash) . is_some ( ) {
239
+ if self . in_flight . contains_key ( & hash) {
240
240
return Err ( ForwardingError :: PaymentHashExists ( hash) ) ;
241
241
}
242
242
self . local_balance_msat -= htlc. amount_msat ;
@@ -704,7 +704,7 @@ impl SimGraph {
704
704
}
705
705
706
706
/// Produces a map of node public key to lightning node implementation to be used for simulations.
707
- pub async fn ln_node_from_graph < ' a > (
707
+ pub async fn ln_node_from_graph (
708
708
graph : Arc < Mutex < SimGraph > > ,
709
709
routing_graph : Arc < NetworkGraph < & ' _ WrappedLog > > ,
710
710
) -> HashMap < PublicKey , Arc < Mutex < dyn LightningNode + ' _ > > > {
@@ -1560,7 +1560,7 @@ mod tests {
1560
1560
shutdown : triggered:: Trigger ,
1561
1561
}
1562
1562
1563
- impl < ' a > DispatchPaymentTestKit < ' a > {
1563
+ impl DispatchPaymentTestKit < ' _ > {
1564
1564
/// Creates a test graph with a set of nodes connected by three channels, with all the capacity of the channel
1565
1565
/// on the side of the first node. For example, if called with capacity = 100 it will set up the following
1566
1566
/// network:
0 commit comments