Skip to content

Commit 63fbf77

Browse files
committed
chore: cleanup
1 parent a34e881 commit 63fbf77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl<'a> Processor<'a> {
219219
location: &FileLocation,
220220
batch_map: &mut HashMap<String, Vec<bson::Document>>,
221221
) -> Result<()> {
222-
let batch = batch_map.entry(collection_name.to_string()).or_insert_with(Vec::new);
222+
let batch = batch_map.entry(collection_name.to_string()).or_default();
223223
batch.push(document);
224224
let len = batch.len();
225225
const BATCH_SIZE: usize = 1000;

0 commit comments

Comments
 (0)