Skip to content

Commit

Permalink
Minor simplification.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Oct 20, 2023
1 parent 7411991 commit 3baa164
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/merge_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ pub struct MergeDeferredDataSource {
impl MergeDeferredDataSource {
pub fn new(data_sources: Vec<Box<dyn DeferredDataSource>>) -> Self {
assert!(!data_sources.is_empty());
let mut infos = Vec::new();
infos.resize_with(data_sources.len(), VecDeque::new);
let infos = vec![VecDeque::new(); data_sources.len()];
Self {
data_sources,
infos,
Expand Down

0 comments on commit 3baa164

Please sign in to comment.