We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 111f91c + dbae792 commit 18dd43aCopy full SHA for 18dd43a
crates/subspace-farmer/src/farm/plotted_pieces.rs
@@ -114,14 +114,10 @@ where
114
piece_offset,
115
};
116
117
- match self.pieces.entry(piece_index) {
118
- Entry::Occupied(mut entry) => {
119
- entry.get_mut().push(piece_details);
120
- }
121
- Entry::Vacant(entry) => {
122
- entry.insert(vec![piece_details]);
123
124
+ self.pieces
+ .entry(piece_index)
+ .or_default()
+ .push(piece_details);
125
}
126
127
0 commit comments