From 37c05d3af71ee436348dc6e7ce7ec9d7e34369de Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 9 Dec 2018 22:33:00 +0100 Subject: Run from crate root, not src/ --- 2018/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2018') diff --git a/2018/src/main.rs b/2018/src/main.rs index d727d35..70e7a79 100644 --- a/2018/src/main.rs +++ b/2018/src/main.rs @@ -33,7 +33,7 @@ fn day_switch(day: i32, reader: T) -> io::Result<(String, String)> { } fn file_for_day(day: i32) -> io::Result> { - match File::open(format!("../input/{}.txt", day)) { + match File::open(format!("input/{}.txt", day)) { Ok(f) => Ok(BufReader::new(f)), Err(_) => Err(Error::new(ErrorKind::Other, format!("No input file for day {}", day))) } -- cgit v1.2.3-70-g09d2