1
0

Update formatting

This commit is contained in:
Stefan Müller
2026-01-26 21:58:01 +01:00
parent 6d499efd3c
commit d28f2ff79e
5 changed files with 19 additions and 6 deletions
+4 -1
View File
@@ -22,7 +22,10 @@ impl Solver for Cafeteria {
.map_while(|x| x.ok().filter(|s| !s.is_empty()))
{
// TODO: This code should move into new common::interval::MultiInterval struct.
let values: Vec<u64> = line.split(Self::INTERVAL_SPLIT_CHAR).map_while(|s| s.parse().ok()).collect();
let values: Vec<u64> = line
.split(Self::INTERVAL_SPLIT_CHAR)
.map_while(|s| s.parse().ok())
.collect();
let mut interval = Interval::new(values[0], values[1]);
let mut to_delete = Vec::new();