use raw pointers instead of transmute to make miri happy

This commit is contained in:
Evan Almloff committed 2023-09-04 09:28:16 -05:00
1 parent cf04256395
commit cfc6887e34
4 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -187,7 +187,7 @@ impl<'b> VirtualDom {
path: ElementPath {
path: &template.template.get().node_paths[idx],
},
template: &template,
template: template,
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
};
self.create_dynamic_node(template_ref, node)
@@ -197,7 +197,7 @@ impl<'b> VirtualDom {
path: ElementPath {
path: &template.template.get().node_paths[idx],
},
template: &template,
template: template,
scope: self.runtime.current_scope_id().unwrap_or(ScopeId(0)),
};
parent.set(Some(self.next_element_ref(template_ref)));