Skip to content

Commit

Permalink
fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Dec 6, 2023
1 parent 1037eec commit cbf76ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aoc2022/day17.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn set(v: &mut Vec<bool>, index: usize) {
v[index] = true;
}

fn get(v: &Vec<bool>, index: usize) -> bool {
fn get(v: &[bool], index: usize) -> bool {
if index >= v.len() {
false
} else {
Expand Down

0 comments on commit cbf76ae

Please sign in to comment.