fix clippy

This commit is contained in:
Evan Almloff committed 2023-09-05 21:30:20 -05:00
1 parent bd38cddc9f
commit 0ab7a02777
3 files changed
+4 -7

No files matched your search

+1 -2
View File
@@ -577,8 +577,7 @@ impl<'b> VirtualDom {
}
// 4. Compute the LIS of this list
let mut lis_sequence = Vec::default();
lis_sequence.reserve(new_index_to_old_index.len());
let mut lis_sequence = Vec::with_capacity(new_index_to_old_index.len());
let mut predecessors = vec![0; new_index_to_old_index.len()];
let mut starts = vec![0; new_index_to_old_index.len()];