Skip to content

Commit fb693ec

Browse files
committed
[bindings] Move additional score params from &() to Default
In 26c1639 (and later in 50c55dc) we switched to using `Default::default()` to initialize `()` for scoring parameters in tests. A number of `()`s slipped back in recently, which we replace here.
1 parent 0a14559 commit fb693ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/test_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl<'a> Router for TestRouter<'a> {
168168
details: first_hops[idx],
169169
payer_node_id: &node_id,
170170
});
171-
scorer.channel_penalty_msat(&candidate, usage, &());
171+
scorer.channel_penalty_msat(&candidate, usage, &Default::default());
172172
continue;
173173
}
174174
}
@@ -180,7 +180,7 @@ impl<'a> Router for TestRouter<'a> {
180180
info: directed,
181181
short_channel_id: hop.short_channel_id,
182182
});
183-
scorer.channel_penalty_msat(&candidate, usage, &());
183+
scorer.channel_penalty_msat(&candidate, usage, &Default::default());
184184
} else {
185185
let target_node_id = NodeId::from_pubkey(&hop.pubkey);
186186
let route_hint = RouteHintHop {
@@ -195,7 +195,7 @@ impl<'a> Router for TestRouter<'a> {
195195
hint: &route_hint,
196196
target_node_id: &target_node_id,
197197
});
198-
scorer.channel_penalty_msat(&candidate, usage, &());
198+
scorer.channel_penalty_msat(&candidate, usage, &Default::default());
199199
}
200200
prev_hop_node = &hop.pubkey;
201201
}

0 commit comments

Comments
 (0)