Skip to content

Commit

Permalink
chore: fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
shuiyisong committed Jan 25, 2024
1 parent b683391 commit 117f54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meter-example/src/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
schema: record.schema.clone(),
};

let mut entry = self.read_data.entry(schema_id).or_insert_with(Vec::new);
let mut entry = self.read_data.entry(schema_id).or_default();

entry.push(record)
}
Expand All @@ -105,7 +105,7 @@ where
schema: record.schema.clone(),
};

let mut entry = self.write_data.entry(schema_id).or_insert_with(Vec::new);
let mut entry = self.write_data.entry(schema_id).or_default();

entry.push(record)
}
Expand Down

0 comments on commit 117f54b

Please sign in to comment.