From 4e39cdc652921894ae2020b453524bc6c0991fc4 Mon Sep 17 00:00:00 2001 From: scoobybejesus Date: Sun, 25 Aug 2019 23:31:08 -0400 Subject: [PATCH] import_accts_txns -> csv_import_accts_txns; resolves #21 --- src/core_functions.rs | 6 +++--- src/{import_accts_txns.rs => csv_import_accts_txns.rs} | 0 src/main.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/{import_accts_txns.rs => csv_import_accts_txns.rs} (100%) 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;