@@ -796,11 +796,11 @@ where L::Target: Logger {
796
796
// The main heap containing all candidate next-hops sorted by their score (max(A* fee,
797
797
// htlc_minimum)). Ideally this would be a heap which allowed cheap score reduction instead of
798
798
// adding duplicate entries when we find a better path to a given node.
799
- let mut targets = BinaryHeap :: new ( ) ;
799
+ let mut targets: BinaryHeap < RouteGraphNode > = BinaryHeap :: new ( ) ;
800
800
801
801
// Map from node_id to information about the best current path to that node, including feerate
802
802
// information.
803
- let mut dist = HashMap :: with_capacity ( network_nodes. len ( ) ) ;
803
+ let mut dist: HashMap < NodeId , PathBuildingHop > = HashMap :: with_capacity ( network_nodes. len ( ) ) ;
804
804
805
805
// During routing, if we ignore a path due to an htlc_minimum_msat limit, we set this,
806
806
// indicating that we may wish to try again with a higher value, potentially paying to meet an
@@ -1339,7 +1339,7 @@ where L::Target: Logger {
1339
1339
// traversing the graph and arrange the path out of what we found.
1340
1340
if node_id == our_node_id {
1341
1341
let mut new_entry = dist. remove ( & our_node_id) . unwrap ( ) ;
1342
- let mut ordered_hops = vec ! ( ( new_entry. clone( ) , default_node_features. clone( ) ) ) ;
1342
+ let mut ordered_hops: Vec < ( PathBuildingHop , NodeFeatures ) > = vec ! ( ( new_entry. clone( ) , default_node_features. clone( ) ) ) ;
1343
1343
1344
1344
' path_walk: loop {
1345
1345
let mut features_set = false ;
0 commit comments