Skip to content

Commit

Permalink
[2023] Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Dec 23, 2023
1 parent bd2da6f commit 9daac19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aoc_2023/src/day_19.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ fn solve_b(rules: &HashMap<&str, Vec<Rule>>, mut range: [(u32, u32); 4], map: &s

fn calc_size(ranges: &[(u32, u32); 4]) -> u64 {
let mut out = 1;
for i in 0..4 {
out *= ranges[i].1 as u64 - ranges[i].0 as u64 + 1;
for range in ranges {
out *= range.1 as u64 - range.0 as u64 + 1;
}
out
}
Expand Down
2 changes: 1 addition & 1 deletion aoc_2023/src/day_22.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ fn parse(input: &str) -> Vec<Box> {
let mut out = Vec::new();
for line in input.lines() {
let parse = |s: &str| {
let a = s.split(",").collect::<Vec<_>>();
let a = s.split(',').collect::<Vec<_>>();
vector!(
a[0].parse().unwrap(),
a[1].parse().unwrap(),
Expand Down

0 comments on commit 9daac19

Please sign in to comment.