aboutsummaryrefslogtreecommitdiffstats
path: root/src/day3.rs
diff options
context:
space:
mode:
authorGravatar alecdwm 2018-12-10 13:25:18 +1000
committerGravatar alecdwm 2018-12-10 13:34:37 +1000
commitb9fc3ccc15c988a40b4c762c61e4277cd4f020b0 (patch)
treef9b2ee25e9fa6d7e7659a31acfe65e08e17a0828 /src/day3.rs
parent03c69dbe7d0fadf226bea5cf0d7eb28a93156716 (diff)
fixed clippy suggestions
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;
}
}