Update formatting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user