Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Nov 15, 2024
1 parent c3dad9a commit a4049b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/maple/gtfs_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ use diesel::ExpressionMethods;
use diesel_async::RunQueryDsl;
use gtfs_structures::ContinuousPickupDropOff;
use gtfs_structures::FeedInfo;
use gtfs_structures::Gtfs;
use gtfs_translations::translation_csv_text_to_translations;
use gtfs_translations::TranslationResult;
use prost::Message;
use std::collections::HashSet;
use std::error::Error;
use std::sync::Arc;
use std::time::Instant;
use gtfs_structures::Gtfs;

#[derive(Debug)]
pub struct GtfsSummary {
Expand Down Expand Up @@ -73,8 +73,8 @@ pub async fn gtfs_process_feed(
let route_types = vec![gtfs_structures::RouteType::Subway];

include_only_route_types(gtfs, route_types)
},
_ => gtfs
}
_ => gtfs,
};

println!(
Expand Down
9 changes: 4 additions & 5 deletions src/schedule_filtering/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,13 @@ mod tests {
#[tokio::test]
async fn filter_ttc() {
let gtfs = gtfs_structures::Gtfs::from_url_async("https://ckan0.cf.opendata.inter.prod-toronto.ca/dataset/7795b45e-e65a-4465-81fc-c36b9dfff169/resource/cfb6b2b8-6191-41e3-bda1-b175c51148cb/download/TTC%20Routes%20and%20Schedules%20Data.zip").await.unwrap();



println!("starts with");
gtfs.print_stats();

let gtfs = include_only_route_types(gtfs, vec![gtfs_structures::RouteType::Subway]);

println!("ends with");
let final_stats = gtfs.print_stats();
}
}
}

0 comments on commit a4049b3

Please sign in to comment.