From e66ea212ad3ebe3e915d130f63038ff98a946b53 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Thu, 1 Dec 2022 08:03:20 -0500 Subject: [PATCH] add one more piece to the template --- main.rs.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.rs.tmpl b/main.rs.tmpl index cad33f6..84da41e 100644 --- a/main.rs.tmpl +++ b/main.rs.tmpl @@ -27,6 +27,12 @@ where Ok(io::BufReader::new(file).lines()) } -fn part_one() {} +fn part_one() { + if let Ok(lines) = read_lines("./inputs/input") { + for line in lines { + // do stuff + } + } +} fn part_two() {}