Skip to content

Commit

Permalink
correct missing imports after clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Jul 25, 2023
1 parent 6f606e2 commit 4adfbf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/core/space_heat_demand/zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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::{
Expand Down
11 changes: 3 additions & 8 deletions src/external_conditions.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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::*;
Expand Down

0 comments on commit 4adfbf0

Please sign in to comment.