From 3fe753bab6093a2880c5a84d338828dda6019dfe Mon Sep 17 00:00:00 2001 From: Dan Date: Sun, 24 Mar 2024 21:04:50 -0400 Subject: [PATCH] change filepaths to relative --- src/day1/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/day1/mod.rs b/src/day1/mod.rs index ac5454c..df0f728 100644 --- a/src/day1/mod.rs +++ b/src/day1/mod.rs @@ -8,7 +8,7 @@ pub fn process() -> u32 { #[allow(dead_code)] fn process_day_1() -> u32 { - let file_path = "/Users/dan/Coding/rust/adventofcode/input_sources/day1.txt"; + let file_path = "./input_sources/day1.txt"; let mut to_sum: Vec = vec![]; if let Ok(lines) = read_lines(file_path) { for line in lines.flatten() { @@ -23,7 +23,7 @@ fn process_day_1() -> u32 { #[allow(unused_mut)] #[allow(unused_variables)] fn process_day_1_part_2() -> u32 { - let file_path = "/Users/dan/Coding/rust/adventofcode/input_sources/day1short.txt"; + let file_path = "./input_sources/day1short.txt"; let mut to_sum: Vec = vec![]; if let Ok(lines) = read_lines(file_path) { for line in lines.flatten() {