Skip to content

Commit caff9ba

Browse files
committed
Fix clippy complains
1 parent c2353f2 commit caff9ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/input/process/flow.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,13 @@ fn validate_secondary_io_flows(
255255
});
256256

257257
for (key, value) in flow {
258-
flows.entry(key).or_insert_with(Vec::new).push(value);
258+
flows.entry(key).or_default().push(value);
259259
}
260260
}
261261

262262
// Finally we check that the flows for a given commodity and region are defined for all
263263
// years and that they are all inputs or all outputs
264-
for ((commodity_id, region_id), value) in flows.iter() {
264+
for ((commodity_id, region_id), value) in &flows {
265265
ensure!(
266266
value.len() == process.years.len(),
267267
"Flow of commodity {commodity_id} in region {region_id} for process {process_id} \

0 commit comments

Comments
 (0)