don't destructure tuple before repacking
This commit is contained in:
parent
b2cfa5ca57
commit
a636bff3aa
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ fn parse_input(input: &str) -> Vec<Assignments> {
|
||||||
let mut out = Vec::with_capacity(input.len());
|
let mut out = Vec::with_capacity(input.len());
|
||||||
for line in input.lines() {
|
for line in input.lines() {
|
||||||
let (a, b) = line.split_once(',').unwrap();
|
let (a, b) = line.split_once(',').unwrap();
|
||||||
let (a, b) = (get_range(a), get_range(b));
|
let assignment = (get_range(a), get_range(b));
|
||||||
out.push((a, b));
|
out.push(assignment);
|
||||||
}
|
}
|
||||||
|
|
||||||
out
|
out
|
||||||
|
|
Loading…
Reference in a new issue