aboutsummaryrefslogtreecommitdiffstats
path: root/src/day3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/day3.rs')
-rw-r--r--src/day3.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/day3.rs b/src/day3.rs
index a41506a..434de69 100644
--- a/src/day3.rs
+++ b/src/day3.rs
@@ -96,7 +96,7 @@ pub fn part2() {
for w in 0..claim.width {
for h in 0..claim.height {
let index = (claim.pos_x + w, claim.pos_y + h);
- if *fabric.get(&index).unwrap() > 1 {
+ if fabric[&index] > 1 {
continue 'claim_loop;
}
}