Skip to content

Commit

Permalink
Merge pull request #3628 from jbaublitz/fix
Browse files Browse the repository at this point in the history
Clarify conversion for set up pool to stopped pool
  • Loading branch information
mulkieran committed Jun 5, 2024
2 parents 6e659e8 + b59b52f commit bba20f0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/engine/strat_engine/liminal/device_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,12 @@ impl IntoIterator for DeviceSet {
impl From<Vec<StratBlockDev>> for DeviceSet {
fn from(vec: Vec<StratBlockDev>) -> Self {
vec.into_iter()
.flat_map(|bd| {
let dev_uuid = bd.uuid();
Vec::<DeviceInfo>::from(bd)
.into_iter()
.map(move |info| (dev_uuid, LInfo::from(info)))
.fold(DeviceSet::default(), |mut device_set, bd| {
for info in Vec::<DeviceInfo>::from(bd) {
device_set.process_info_add(info);
}
device_set
})
.collect::<DeviceSet>()
}
}

Expand Down

0 comments on commit bba20f0

Please sign in to comment.