From 014539a19e52f256b608d7d82c40196e4e885d4a Mon Sep 17 00:00:00 2001 From: Jacek Czaja Date: Sun, 24 Mar 2024 11:52:27 +0100 Subject: [PATCH] - UT fixed --- src/de.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de.rs b/src/de.rs index 7ebfd3a..b6604c8 100644 --- a/src/de.rs +++ b/src/de.rs @@ -74,6 +74,8 @@ impl etradeTaxReturnHelper::Residency for DE { #[cfg(test)] mod tests { use super::*; + use etradeTaxReturnHelper::Residency; + #[test] fn test_present_result_de() -> Result<(), String> { let rd: Box = Box::new(DE {}); @@ -111,7 +113,7 @@ mod tests { None, ); - let rd: Box = Box::new(crate::de::DE {}); + let rd: DE = DE {}; rd.get_exchange_rates(&mut dates).map_err(|x| "Error: unable to get exchange rates. Please check your internet connection or proxy settings\n\nDetails:".to_string()+x.as_str())?; let mut expected_result: std::collections::HashMap<