don't destructure tuple before repacking

This commit is contained in:
Joe Ardent 2022-12-05 14:01:03 -08:00
parent b2cfa5ca57
commit a636bff3aa

View file

@ -8,8 +8,8 @@ fn parse_input(input: &str) -> Vec<Assignments> {
let mut out = Vec::with_capacity(input.len());
for line in input.lines() {
let (a, b) = line.split_once(',').unwrap();
let (a, b) = (get_range(a), get_range(b));
out.push((a, b));
let assignment = (get_range(a), get_range(b));
out.push(assignment);
}
out