Skip to content

Commit 801d9d9

Browse files
committed
editoast: fix .map.flatten
1 parent 2f30df2 commit 801d9d9

File tree

1 file changed

+1
-2
lines changed
  • editoast/src/views/stdcm

1 file changed

+1
-2
lines changed

editoast/src/views/stdcm/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async fn make_spacing_requirements(
214214
let res = simulations
215215
.into_iter()
216216
.zip(schedules)
217-
.map(|(simulation, schedule)| {
217+
.flat_map(|(simulation, schedule)| {
218218
let sim = simulation
219219
.eco_simulation
220220
.map(|sim| sim.0)
@@ -229,7 +229,6 @@ async fn make_spacing_requirements(
229229
})
230230
.collect::<Vec<_>>()
231231
})
232-
.flatten()
233232
.collect();
234233
Ok(res)
235234
}

0 commit comments

Comments
 (0)