Skip to content

Commit

Permalink
Remove unused imports to please cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Mar 27, 2024
1 parent 97dd891 commit 84cbbb8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/maple/gtfs_process.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
use diesel::prelude::*;
use diesel_async::RunQueryDsl;
use dotenvy::dotenv;
use postgis::ewkb;
use rgb::RGB;
use std::collections::HashMap;
use std::collections::HashSet;
use std::env;
use std::error::Error;
use std::sync::Arc;

use crate::gtfs_handlers::colour_correction;
use crate::gtfs_handlers::enum_to_int::route_type_to_int;
use crate::gtfs_handlers::rename_route_labels::*;
use crate::gtfs_handlers::shape_colour_calculator::shape_to_colour;
use crate::gtfs_handlers::stops_associated_items::*;
use crate::gtfs_ingestion_sequence::shapes_into_postgres::shapes_into_postgres;
use crate::DownloadedFeedsInformation;
use catenary::postgres_tools::CatenaryPostgresConnection;
use catenary::postgres_tools::CatenaryPostgresPool;

// Initial version 3 of ingest written by Kyler Chin
Expand Down
3 changes: 0 additions & 3 deletions src/maple/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ use std::error::Error;
use std::sync::atomic::AtomicUsize;
use std::sync::atomic::Ordering;
use std::sync::Arc;
use std::time::Duration;
use threadpool::ThreadPool;
use tokio::runtime;

mod gtfs_handlers;
Expand All @@ -33,7 +31,6 @@ use gtfs_process::gtfs_process_feed;

use chateau::chateau;
use dmfr_folder_reader::read_folders;
use dmfr_folder_reader::ReturnDmfrAnalysis;

use crate::gtfs_handlers::MAPLE_INGESTION_VERSION;
use crate::transitland_download::DownloadedFeedsInformation;
Expand Down
6 changes: 4 additions & 2 deletions src/maple/refresh_metadata_tables.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use chateau::Chateau;
use dmfr_folder_reader::ReturnDmfrAnalysis;
use std::collections::{HashMap, HashSet};
use std::collections::HashMap;
use std::sync::Arc;
use std::error::Error;

// Written by Kyler Chin at Catenary Transit Initiatives
// https://github.com/CatenaryTransit/catenary-backend
Expand All @@ -11,8 +12,9 @@ pub async fn refresh_metadata_assignments(
dmfr_result: &ReturnDmfrAnalysis,

Check warning

Code scanning / clippy

unused variable: dmfr_result Warning

unused variable: dmfr\_result
chateau_result: &HashMap<String, Chateau>,

Check warning

Code scanning / clippy

unused variable: chateau_result Warning

unused variable: chateau\_result
pool: Arc<catenary::postgres_tools::CatenaryPostgresPool<'static>>,
) {
) -> Result<(), Box<dyn Error + Sync + Send>> {
//update or create realtime tables and static tables

// if the new chateau id is different for any of the feeds, run the update function
Ok(())
}

0 comments on commit 84cbbb8

Please sign in to comment.