Skip to content

Commit

Permalink
apply clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Feb 27, 2025
1 parent 41c29f5 commit c5784e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3528,9 +3528,7 @@ fn zone_from_input(
for zone_h_name in heat_system_name_for_zone.values() {
let zone_h_name_set: HashSet<String> = HashSet::from_iter(zone_h_name.iter().cloned());
let h_overassigned: Vec<String> = HashSet::from_iter(heat_system_names.clone().into_iter())
.intersection(&zone_h_name_set)
.cloned()
.filter(|name| name != "")
.intersection(&zone_h_name_set).filter(|&name| !name.is_empty()).cloned()
.collect_vec();
if !h_overassigned.is_empty() {
bail!(
Expand All @@ -3551,9 +3549,7 @@ fn zone_from_input(
for zone_c_name in cool_system_name_for_zone.values() {
let zone_c_name_set: HashSet<String> = HashSet::from_iter(zone_c_name.iter().cloned());
let c_overassigned: Vec<String> = HashSet::from_iter(cool_system_names.clone().into_iter())
.intersection(&zone_c_name_set)
.cloned()
.filter(|name| name != "")
.intersection(&zone_c_name_set).filter(|&name| !name.is_empty()).cloned()
.collect_vec();
if !c_overassigned.is_empty() {
bail!(
Expand Down

0 comments on commit c5784e9

Please sign in to comment.