refactor: PR feedback

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
pull/24376/head
Edd Robinson 2020-07-13 15:53:16 +01:00 committed by GitHub
parent bfe83868fc
commit 8dcbfcdfb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -504,8 +504,7 @@ impl BlockData {
// buf will hold the next candidates from each of the sorted input
// blocks.
let mut buf: Vec<Option<ValuePair>> = Vec::new();
buf.resize_with(blocks.len(), || None);
let mut buf = vec![None; blocks.len()];
// TODO(edd): perf - this simple iterator approach will likely be sped
// up by batch merging none-overlapping sections of candidate inputs.