From e9f9fc18cce35fbc9eb3fd682716fc948f1e776f Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 18 Dec 2018 09:51:45 +0100 Subject: Fix warnings in day 17 --- 2018/src/day17.rs | 7 +++++-- 1 file 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 { -- cgit v1.2.3-70-g09d2