day3 rustfmt

This commit is contained in:
Dylan Thies
2023-12-03 20:49:04 -05:00
parent ecbaf8f9fe
commit 65c9bcd49d

View File

@@ -77,11 +77,11 @@ fn parse_input(input: &str) -> (Vec<SerialNumber>, BTreeMap<(usize, usize), char
} }
//need to account for new line numbers //need to account for new line numbers
if prev_char.is_some() { if prev_char.is_some() {
numbers.push( SerialNumber { numbers.push(SerialNumber {
no: cur_no, no: cur_no,
start: (cur_no_row_start, line_no), start: (cur_no_row_start, line_no),
end: (line.len() - 1, line_no), end: (line.len() - 1, line_no),
}); });
} }
} }
(numbers, symbols) (numbers, symbols)
@@ -102,7 +102,7 @@ mod test {
...$.*.... ...$.*....
.664.598.."; .664.598..";
const INPUT2: &str="12.......*.. const INPUT2: &str = "12.......*..
+.........34 +.........34
.......-12.. .......-12..
..78........ ..78........