minor changes

This commit is contained in:
Nicholas Orlowsky 2025-09-23 18:03:28 -04:00
parent 95bef54eed
commit 0593f14408
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
3 changed files with 29 additions and 44 deletions

View file

@ -52,8 +52,8 @@ pub struct TimetableDirection {
}
pub fn build_timetables(
directions: &[Direction],
trips: &[Trip],
directions: Vec<Direction>,
trips: Vec<Trip>,
) -> Vec<TimetableDirection> {
let mut results = Vec::new();
@ -115,12 +115,6 @@ pub fn build_timetables(
}
});
assert!(trip_ids.len() == live_trips.len());
for row in &rows {
assert!(row.times.len() == live_trips.len());
}
results.push(TimetableDirection {
direction: direction.clone(),
trip_ids,