Skip to content

Commit

Permalink
Update editoast/src/views/v2/timetable/stdcm.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Amsallem  <[email protected]>
  • Loading branch information
eckter and flomonster committed Jul 18, 2024
1 parent a2cf3af commit 90ae83f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editoast/src/views/v2/timetable/stdcm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ fn build_train_requirements(
latest_simulation_end: DateTime<Utc>,
) -> HashMap<i64, TrainRequirement> {
let mut trains_requirements = HashMap::new();
for (train, sim) in trains.iter().zip(simulations) {
let (sim, _) = sim;
for (train, (sim, _)) in trains.iter().zip(simulations) {
let final_output = match sim {
SimulationResponse::Success { final_output, .. } => final_output,
_ => continue,
Expand Down

0 comments on commit 90ae83f

Please sign in to comment.