Skip to content

Commit c8f6203

Browse files
Get rid of unused var warnings
1 parent 65fd2af commit c8f6203

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/routing/network_graph.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ impl_writeable!(ChannelInfo, 0, {
284284

285285
/// By default, these methods do nothing. A user may override them to write to their metadata as needed
286286
impl ChannelScorer for ChannelInfo {
287-
fn calculate_minimum_fee_penalty(&self, channel_id: u64) {}
288-
fn score_payment_failure(&self, route: Vec<Vec<RouteHop>>, faulty_nodes: Vec<PublicKey>) {}
289-
fn score_payment_success(&self, route: Vec<Vec<RouteHop>>) {}
287+
fn calculate_minimum_fee_penalty(&self, _channel_id: u64) {}
288+
fn score_payment_failure(&self, _route: Vec<Vec<RouteHop>>, _faulty_nodes: Vec<PublicKey>) {}
289+
fn score_payment_success(&self, _route: Vec<Vec<RouteHop>>) {}
290290
}
291291

292292
/// Fees for routing via a given channel or a node
@@ -511,9 +511,9 @@ impl std::fmt::Display for NetworkGraph {
511511
}
512512

513513
impl ChannelScorer for NetworkGraph {
514-
fn calculate_minimum_fee_penalty(&self, channel_id: u64) {}
515-
fn score_payment_success(&self, route: Vec<Vec<RouteHop>>) {}
516-
fn score_payment_failure(&self, route: Vec<Vec<RouteHop>>, faulty_nodes: Vec<PublicKey>) {}
514+
fn calculate_minimum_fee_penalty(&self, _channel_id: u64) {}
515+
fn score_payment_success(&self, _route: Vec<Vec<RouteHop>>) {}
516+
fn score_payment_failure(&self, _route: Vec<Vec<RouteHop>>, _faulty_nodes: Vec<PublicKey>) {}
517517
}
518518

519519
impl NetworkGraph {

0 commit comments

Comments
 (0)