summaryrefslogtreecommitdiff
path: root/2018/src/day17.rs
diff options
context:
space:
mode:
Diffstat (limited to '2018/src/day17.rs')
-rw-r--r--2018/src/day17.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/2018/src/day17.rs b/2018/src/day17.rs
index f920421..9b81c06 100644
--- a/2018/src/day17.rs
+++ b/2018/src/day17.rs
@@ -1,9 +1,10 @@
use std::io;
use std::io::BufRead;
-use std::collections::{VecDeque, BinaryHeap, HashSet};
+// use std::collections::VecDeque;
+use std::collections::{BinaryHeap, HashSet};
use std::cmp;
use std::iter::{self, Iterator};
-use std::{thread, time};
+// use std::{thread, time};
enum Clay {
Horizontal(i32, i32, i32), // y, x1, x2
@@ -104,6 +105,7 @@ impl Grid {
}
}
+ #[used]
fn print(&self) {
for y in 0..self.data.len() {
for x in 0..self.data[0].len() {
@@ -113,6 +115,7 @@ impl Grid {
}
}
+ #[used]
fn print_range(&self, y1: i32, y2: i32, hlx: i32, hly: i32) {
for y in 0..self.data.len() {
if self.miny + (y as i32) < y1 {