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.
1 parent a34e881 commit 63fbf77Copy full SHA for 63fbf77
src/processor.rs
@@ -219,7 +219,7 @@ impl<'a> Processor<'a> {
219
location: &FileLocation,
220
batch_map: &mut HashMap<String, Vec<bson::Document>>,
221
) -> Result<()> {
222
- let batch = batch_map.entry(collection_name.to_string()).or_insert_with(Vec::new);
+ let batch = batch_map.entry(collection_name.to_string()).or_default();
223
batch.push(document);
224
let len = batch.len();
225
const BATCH_SIZE: usize = 1000;
0 commit comments