Skip to content

Commit b5408a2

Browse files
committed
Keep clippy happy
1 parent 4562348 commit b5408a2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/graph.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ fn prepare_commodities_graph_for_validation(
199199
let demand_node_index = filtered_graph.add_node(GraphNode::Demand);
200200
for (commodity_id, commodity) in commodities {
201201
if time_slice_selection.level() == commodity.time_slice_level
202-
&& commodity
203-
.demand
204-
.get(&(region_id.clone(), year, time_slice_selection.clone()))
205-
.is_some()
202+
&& commodity.demand.contains_key(&(
203+
region_id.clone(),
204+
year,
205+
time_slice_selection.clone(),
206+
))
206207
{
207208
let commodity_node = GraphNode::Commodity(commodity_id.clone());
208209
let commodity_node_index = filtered_graph

0 commit comments

Comments
 (0)