Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
vintitres committed Sep 15, 2023
1 parent 6c694a9 commit 12b55d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/day16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn consolidate(valves: &BTreeMap<String, Valve>) -> BTreeMap<String, Valve> {

pub fn part1(input: &str) -> i64 {
let valves = consolidate(&BTreeMap::from_iter(input.lines().map(Valve::read)));
let allflow = valves.iter().map(|(_, v)| v.flow_rate).sum();
let allflow = valves.values().map(|v| v.flow_rate).sum();
let mut bestflow = 1500;
dfs(
&valves,
Expand All @@ -139,7 +139,7 @@ pub fn part1(input: &str) -> i64 {

pub fn part2(input: &str) -> i64 {
let valves = consolidate(&BTreeMap::from_iter(input.lines().map(Valve::read)));
let allflow = valves.iter().map(|(_, v)| v.flow_rate).sum();
let allflow = valves.values().map(|v| v.flow_rate).sum();
let mut bestflow = 0;
dfs(
&valves,
Expand Down

0 comments on commit 12b55d7

Please sign in to comment.