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<