diff --git a/src/core_functions.rs b/src/core_functions.rs index acb5c4b..d994b96 100644 --- a/src/core_functions.rs +++ b/src/core_functions.rs @@ -11,7 +11,7 @@ use structopt::StructOpt; use crate::account::{Account, RawAccount, Lot}; use crate::transaction::{Transaction, ActionRecord}; -use crate::import_accts_txns; +use crate::csv_import_accts_txns; use crate::import_cost_proceeds_etc; use crate::create_lots_mvmts; @@ -88,12 +88,12 @@ pub fn import_and_process_final( .has_headers(true) .from_reader(file); - match import_accts_txns::import_accounts(&mut rdr, raw_acct_map, acct_map) { + match csv_import_accts_txns::import_accounts(&mut rdr, raw_acct_map, acct_map) { Ok(()) => {} Err(err) => { println!("\nFailed to import accounts from CSV."); println!("{}", err); } }; - match import_accts_txns::import_transactions( + match csv_import_accts_txns::import_transactions( &mut rdr, transactions_map, action_records, diff --git a/src/import_accts_txns.rs b/src/csv_import_accts_txns.rs similarity index 100% rename from src/import_accts_txns.rs rename to src/csv_import_accts_txns.rs diff --git a/src/main.rs b/src/main.rs index 7051981..da29a09 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ use std::error::Error; mod account; mod transaction; mod core_functions; -mod import_accts_txns; +mod csv_import_accts_txns; mod create_lots_mvmts; mod import_cost_proceeds_etc; mod cli_user_choices;