diff --git a/src/merge_data.rs b/src/merge_data.rs index 8b46785..d9af224 100644 --- a/src/merge_data.rs +++ b/src/merge_data.rs @@ -16,8 +16,7 @@ pub struct MergeDeferredDataSource { impl MergeDeferredDataSource { pub fn new(data_sources: Vec>) -> 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,