diff --git a/src/core/space_heat_demand/zone.rs b/src/core/space_heat_demand/zone.rs index c3d5c9c..7b79a96 100644 --- a/src/core/space_heat_demand/zone.rs +++ b/src/core/space_heat_demand/zone.rs @@ -7,9 +7,7 @@ use crate::core::space_heat_demand::thermal_bridge::{ heat_transfer_coefficient_for_thermal_bridge, ThermalBridging, }; use crate::core::space_heat_demand::ventilation_element::{ - temp_supply_for_window_opening, - VentilationElement, - WindowOpeningForCooling, + temp_supply_for_window_opening, VentilationElement, WindowOpeningForCooling, }; use crate::core::units::{kelvin_to_celsius, SECONDS_PER_HOUR, WATTS_PER_KILOWATT}; use crate::external_conditions::ExternalConditions; @@ -1202,6 +1200,7 @@ struct HeatBalance { mod test { use super::*; use crate::core::space_heat_demand::thermal_bridge::ThermalBridge; + use crate::core::space_heat_demand::ventilation_element::VentilationElementInfiltration; use crate::core::units::DAYS_IN_MONTH; use crate::external_conditions::DaylightSavingsConfig; use crate::input::{ diff --git a/src/external_conditions.rs b/src/external_conditions.rs index 67bd3bc..7a28098 100644 --- a/src/external_conditions.rs +++ b/src/external_conditions.rs @@ -1,7 +1,4 @@ - -use crate::simulation_time::{ - SimulationTimeIterator, HOURS_IN_DAY, -}; +use crate::simulation_time::{SimulationTimeIterator, HOURS_IN_DAY}; use itertools::Itertools; use serde::Deserialize; @@ -980,10 +977,7 @@ impl ExternalConditions { } // following is finding the max value of fdiff_list - *fdiff_list - .iter() - .max_by(|a, b| a.total_cmp(b)) - .unwrap() + *fdiff_list.iter().max_by(|a, b| a.total_cmp(b)).unwrap() } // commenting out for now as uses broken method direct_shading_reduction_factor @@ -1470,6 +1464,7 @@ fn init_dimensionless_sky_brightness_parameter( #[cfg(test)] mod test { use super::*; + use crate::core::units::DAYS_IN_MONTH; use crate::external_conditions::DaylightSavingsConfig::NotApplicable; use crate::simulation_time::{SimulationTime, HOURS_IN_DAY}; use rstest::*;