aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-08-12 01:30:28 -0400
committerJesse Luehrs <doy@tozt.net>2019-08-12 01:30:28 -0400
commit3450a6aa3af8ac57e2b8931ef1d63cadccdbd44c (patch)
tree57b3a1eb5cf070d013fa192c975d3bc1a9bbde42 /src
parent7d2e68156630af27539448a05347d6c55555c6ba (diff)
downloadynab-api-3450a6aa3af8ac57e2b8931ef1d63cadccdbd44c.tar.gz
ynab-api-3450a6aa3af8ac57e2b8931ef1d63cadccdbd44c.zip
remove a couple more unnecessary super uses
crate is easier to understand than super when they refer to the same thing
Diffstat (limited to 'src')
-rw-r--r--src/checks.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/checks.rs b/src/checks.rs
index 7882fae..dfd5362 100644
--- a/src/checks.rs
+++ b/src/checks.rs
@@ -1,9 +1,9 @@
-pub fn run_checks(budget: &super::ynab::Budget) {
+pub fn run_checks(budget: &crate::ynab::Budget) {
check_reconciled(budget);
check_has_inflows(budget);
}
-fn check_reconciled(budget: &super::ynab::Budget) {
+fn check_reconciled(budget: &crate::ynab::Budget) {
let reconciled_amount: i64 = budget
.reimbursables()
.iter()
@@ -13,13 +13,13 @@ fn check_reconciled(budget: &super::ynab::Budget) {
if reconciled_amount != 0 {
eprintln!(
"reconciled reimbursables don't sum to $0.00: ${}",
- super::ynab::format_amount(reconciled_amount)
+ crate::ynab::format_amount(reconciled_amount)
);
std::process::exit(1);
}
}
-fn check_has_inflows(budget: &super::ynab::Budget) {
+fn check_has_inflows(budget: &crate::ynab::Budget) {
let txns = budget
.reimbursables()
.iter()