Skip to content

Commit 4d8fe33

Browse files
committed
Remove preceeding underscore from used function parameter's name
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
1 parent 4508840 commit 4d8fe33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/logical_meter/formula/graph_formula_provider.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ macro_rules! graph_formula_provider {
2222

2323
fn $fnname(
2424
_graph: &ComponentGraph<ElectricalComponent, ElectricalComponentConnection>,
25-
_metric: Self::MetricType,
25+
metric: Self::MetricType,
2626
_instructions_tx: mpsc::Sender<logical_meter_actor::Instruction>,
2727
$($idsparam: Option<BTreeSet<u64>>,)?
2828
$($idparam: u64,)?
@@ -31,7 +31,7 @@ macro_rules! graph_formula_provider {
3131
format!(
3232
"The component graph does not support {} formula generation for {}.",
3333
stringify!($fnname),
34-
_metric.to_string()
34+
metric.to_string()
3535
)
3636
));
3737
}
@@ -70,7 +70,7 @@ macro_rules! impl_graph_formula_provider {
7070

7171
fn $fnname(
7272
graph: &ComponentGraph<ElectricalComponent, ElectricalComponentConnection>,
73-
_metric: Self::MetricType,
73+
metric: Self::MetricType,
7474
instructions_tx: mpsc::Sender<logical_meter_actor::Instruction>,
7575
$($idsparam: Option<BTreeSet<u64>>,)?
7676
$($idparam: u64,)?
@@ -80,7 +80,7 @@ macro_rules! impl_graph_formula_provider {
8080
format!("Could not get {} formula: {e}", stringify!($fnname))
8181
)
8282
})?;
83-
Ok(FormulaParams::new(formula, _metric, instructions_tx).into())
83+
Ok(FormulaParams::new(formula, metric, instructions_tx).into())
8484
}
8585

8686
)+};

0 commit comments

Comments
 (0)