make clippy happy
This commit is contained in:
1 parent
73e0be9e65
commit
9d044ee589
2 files changed
+4
-5
No files matched your search
@@ -188,7 +188,7 @@ impl<'b> VirtualDom {
|
|||||||
node @ Component { .. } | node @ Fragment(_) => {
|
node @ Component { .. } | node @ Fragment(_) => {
|
||||||
let template_ref = ElementRef {
|
let template_ref = ElementRef {
|
||||||
path: ElementPath {
|
path: ElementPath {
|
||||||
path: &template.template.get().node_paths[idx],
|
path: template.template.get().node_paths[idx],
|
||||||
},
|
},
|
||||||
template: template.stable_id().unwrap(),
|
template: template.stable_id().unwrap(),
|
||||||
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
||||||
@@ -198,7 +198,7 @@ impl<'b> VirtualDom {
|
|||||||
Placeholder(VPlaceholder { id, parent }) => {
|
Placeholder(VPlaceholder { id, parent }) => {
|
||||||
let template_ref = ElementRef {
|
let template_ref = ElementRef {
|
||||||
path: ElementPath {
|
path: ElementPath {
|
||||||
path: &template.template.get().node_paths[idx],
|
path: template.template.get().node_paths[idx],
|
||||||
},
|
},
|
||||||
template: template.stable_id().unwrap(),
|
template: template.stable_id().unwrap(),
|
||||||
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
||||||
@@ -287,7 +287,7 @@ impl<'b> VirtualDom {
|
|||||||
for idx in reversed_iter {
|
for idx in reversed_iter {
|
||||||
let boundary_ref = ElementRef {
|
let boundary_ref = ElementRef {
|
||||||
path: ElementPath {
|
path: ElementPath {
|
||||||
path: &template.template.get().node_paths[idx],
|
path: template.template.get().node_paths[idx],
|
||||||
},
|
},
|
||||||
template: template.stable_id().unwrap(),
|
template: template.stable_id().unwrap(),
|
||||||
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
|
||||||
|
|||||||
@@ -619,8 +619,7 @@ impl<'b> VirtualDom {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 4. Compute the LIS of this list
|
// 4. Compute the LIS of this list
|
||||||
let mut lis_sequence = Vec::default();
|
let mut lis_sequence = Vec::with_capacity(new_index_to_old_index.len());
|
||||||
lis_sequence.reserve(new_index_to_old_index.len());
|
|
||||||
|
|
||||||
let mut predecessors = vec![0; 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()];
|
let mut starts = vec![0; new_index_to_old_index.len()];
|
||||||
|
|||||||
Reference in new issue
Block a user