diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-12-11 21:17:56 +0200 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-12-11 21:17:56 +0200 |
commit | dcf2fa129436852fc03d509bbd572e07ea1b3766 (patch) | |
tree | ee165dec8c238b329bb5783bb99844d6fb0877a9 | |
parent | 057acf84565cc22921f7344920416cb8d180381d (diff) | |
download | advent2024-dcf2fa129436852fc03d509bbd572e07ea1b3766.tar.gz advent2024-dcf2fa129436852fc03d509bbd572e07ea1b3766.tar.bz2 advent2024-dcf2fa129436852fc03d509bbd572e07ea1b3766.zip |
chore: formatting
-rw-r--r-- | src/day1.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/day1.rs b/src/day1.rs index 137d7f4..113cd37 100644 --- a/src/day1.rs +++ b/src/day1.rs @@ -18,7 +18,8 @@ fn parse_input(input_string: &str, column1: &mut Vec<i32>, column2: &mut Vec<i32 } pub fn part1(input_path: &str) { println!("Part 1, Day 1"); - let input = fs::read_to_string(input_path).expect("Expected to read the file"); + let input = fs::read_to_string(input_path) + .expect("Expected to read the file"); let mut loc1: Vec<i32> = Vec::new(); let mut loc2: Vec<i32> = Vec::new(); parse_input(&input, &mut loc1, &mut loc2); @@ -32,7 +33,8 @@ pub fn part1(input_path: &str) { } pub fn part2(input_path: &str) { println!("Part 2, Day 1"); - let input = fs::read_to_string(input_path).expect("Expected to read file normally"); + let input = fs::read_to_string(input_path) + .expect("Expected to read file normally"); let mut list1: Vec<i32> = Vec::new(); let mut list2: Vec<i32> = Vec::new(); parse_input(&input, &mut list1, &mut list2); |