wip: try to get lifetimes passed in properly

This commit is contained in:
Jonathan Kelley committed 2021-10-30 20:28:58 -04:00
1 parent 27d891934a
commit f70b5b4e4a
6 files changed
+312 -184

No files matched your search

+5
View File
@@ -421,6 +421,10 @@ impl<'bump> DiffMachine<'bump> {
) => self
.stack
.create_node(new_node, MountType::Replace { old: old_node }),
(Placeholder, _) | (_, Placeholder) => {
unreachable!("placeholder should never be diffed");
}
}
}
@@ -1125,6 +1129,7 @@ impl<'bump> DiffMachine<'bump> {
self.remove_nodes(e.children, false);
}
VNode::Fragment(f) => {
self.remove_nodes(f.children, gen_muts);
}