|
@@ -371,7 +371,8 @@ impl VirtualDom {
|
|
|
// Loop through each dynamic attribute (in a depth first order) in this template before moving up to the template's parent.
|
|
|
while let Some(el_ref) = parent_path {
|
|
|
// safety: we maintain references of all vnodes in the element slab
|
|
|
- let template = unsafe { &*el_ref.template.unwrap() };
|
|
|
+ let template =
|
|
|
+ unsafe { &*el_ref.template.expect("template reference should be valid") };
|
|
|
let node_template = template.template.get();
|
|
|
let target_path = el_ref.path;
|
|
|
|