We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fb907 commit c66d26dCopy full SHA for c66d26d
src/gtfs.rs
@@ -245,8 +245,6 @@ fn to_stop_collection(
245
) -> Result<Collection<Stop>, Error> {
246
let mut stop_map: Collection<Stop> = stops.into_iter().collect();
247
for transfer in raw_transfers {
248
- // Note: I'm not convinced at all by this Id::must_exists...
249
- // we shouldn't have to allocate here, and we must find a way to really ensure that the id exists (or remove the verbosity)
250
let to_stop_id = stop_map
251
.get_id(&transfer.to_stop_id)
252
.ok_or_else(|| Error::ReferenceError(transfer.to_stop_id.to_string()))?;
0 commit comments