diff --git a/crates/subspace-farmer/src/farm/plotted_pieces.rs b/crates/subspace-farmer/src/farm/plotted_pieces.rs index 10355e1ee1..084200f465 100644 --- a/crates/subspace-farmer/src/farm/plotted_pieces.rs +++ b/crates/subspace-farmer/src/farm/plotted_pieces.rs @@ -114,14 +114,10 @@ where piece_offset, }; - match self.pieces.entry(piece_index) { - Entry::Occupied(mut entry) => { - entry.get_mut().push(piece_details); - } - Entry::Vacant(entry) => { - entry.insert(vec![piece_details]); - } - } + self.pieces + .entry(piece_index) + .or_default() + .push(piece_details); } }