From e14621ebe2b5cb14cfd1b597543d758867716cb8 Mon Sep 17 00:00:00 2001 From: Bryan Gurney Date: Thu, 5 Oct 2023 16:00:58 -0400 Subject: [PATCH] liminal/setup.rs: fix unwrap-or-default lint Signed-off-by: Bryan Gurney --- src/engine/strat_engine/liminal/setup.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/strat_engine/liminal/setup.rs b/src/engine/strat_engine/liminal/setup.rs index e92790537b..c648f38bb1 100644 --- a/src/engine/strat_engine/liminal/setup.rs +++ b/src/engine/strat_engine/liminal/setup.rs @@ -163,7 +163,7 @@ 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)) } @@ -171,7 +171,7 @@ pub fn get_blockdevs( 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)) } }