Skip to content

Commit

Permalink
liminal/setup.rs: fix unwrap-or-default lint
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Oct 5, 2023
1 parent 1280595 commit e14621e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/strat_engine/liminal/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ pub fn get_blockdevs(
for seg in &backstore_save.data_tier.blockdev.allocs[0] {
segment_table
.entry(seg.parent)
.or_insert_with(Vec::default)
.or_default()
.push((seg.start, seg.length))
}

if let Some(ref cache_tier) = backstore_save.cache_tier {
for seg in cache_tier.blockdev.allocs.iter().flat_map(|i| i.iter()) {
segment_table
.entry(seg.parent)
.or_insert_with(Vec::default)
.or_default()
.push((seg.start, seg.length))
}
}
Expand Down

0 comments on commit e14621e

Please sign in to comment.