day5: fix build error
This commit is contained in:
parent
b478bfaf9d
commit
dbe738c17e
|
@ -31,18 +31,16 @@ fn process(data: &str) -> i64 {
|
|||
.lines()
|
||||
.skip(1)
|
||||
.map(|line| {
|
||||
line.split_ascii_whitespace()
|
||||
let y: Vec<i64> = line
|
||||
.split_ascii_whitespace()
|
||||
.map(|y| y.parse::<i64>().unwrap())
|
||||
.array_chunks::<2>()
|
||||
.map(|y| {
|
||||
.collect();
|
||||
let size = y[2];
|
||||
|
||||
(y[1]..y[1] + size, y[0]..y[0] + size)
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
.collect();
|
||||
for map in maps {
|
||||
let mut out = vec![];
|
||||
|
|
Loading…
Reference in New Issue
Block a user