summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-12-18 09:51:45 +0100
committerTom Smeding <tom.smeding@gmail.com>2018-12-18 13:57:23 +0100
commite9f9fc18cce35fbc9eb3fd682716fc948f1e776f (patch)
treebd3234e6990fa477d9ff27b94d76380f2b994094
parentf1481a8b61d1ee22399d55f6be7e74fc634cc019 (diff)
Fix warnings in day 17
-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 {