make clippy happy

This commit is contained in:
Evan Almloff committed 2023-09-11 16:30:16 -05:00
1 parent 73e0be9e65
commit 9d044ee589
2 files changed
+4 -5

No files matched your search

+3 -3
View File
@@ -188,7 +188,7 @@ impl<'b> VirtualDom {
node @ Component { .. } | node @ Fragment(_) => {
let template_ref = ElementRef {
path: ElementPath {
path: &template.template.get().node_paths[idx],
path: template.template.get().node_paths[idx],
},
template: template.stable_id().unwrap(),
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
@@ -198,7 +198,7 @@ impl<'b> VirtualDom {
Placeholder(VPlaceholder { id, parent }) => {
let template_ref = ElementRef {
path: ElementPath {
path: &template.template.get().node_paths[idx],
path: template.template.get().node_paths[idx],
},
template: template.stable_id().unwrap(),
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
@@ -287,7 +287,7 @@ impl<'b> VirtualDom {
for idx in reversed_iter {
let boundary_ref = ElementRef {
path: ElementPath {
path: &template.template.get().node_paths[idx],
path: template.template.get().node_paths[idx],
},
template: template.stable_id().unwrap(),
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
+1 -2
View File
@@ -619,8 +619,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()];