From e326e4f555c20e8ca5d7b62771b80fa7ba2df122 Mon Sep 17 00:00:00 2001 From: Jacek Czaja Date: Sun, 17 Dec 2023 18:50:42 +0100 Subject: [PATCH] FMT --- src/lib.rs | 13 ++++++++++++- src/main.rs | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1484d7b..8d2d674 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -252,7 +252,18 @@ pub fn format_sold_transactions_to_string() {} pub fn run_taxation( rd: &Box, names: Vec, -) -> Result<(f32, f32, f32, f32, Vec, Vec, Vec), String> { +) -> Result< + ( + f32, + f32, + f32, + f32, + Vec, + Vec, + Vec, + ), + String, +> { let mut parsed_div_transactions: Vec<(String, f32, f32)> = vec![]; let mut parsed_sold_transactions: Vec<(String, String, i32, f32, f32)> = vec![]; let mut parsed_gain_and_losses: Vec<(String, String, f32, f32, f32)> = vec![]; diff --git a/src/main.rs b/src/main.rs index 9b11554..c4f5840 100644 --- a/src/main.rs +++ b/src/main.rs @@ -315,7 +315,7 @@ mod tests { let pdfnames: Vec = pdfnames.map(|x| x.to_string()).collect(); match etradeTaxReturnHelper::run_taxation(&rd, pdfnames) { - Ok((gross_div, tax_div, gross_sold, cost_sold, _,_, _)) => { + Ok((gross_div, tax_div, gross_sold, cost_sold, _, _, _)) => { assert_eq!( (gross_div, tax_div, gross_sold, cost_sold), (2930.206, 439.54138, 395.45355, 91.156715)