feat: allow dynamic nodes to be into dynamic nodes

This commit is contained in:
Jonathan Kelley committed 2022-12-12 11:20:25 -08:00
1 parent d160f38bc2
commit d93eed4c29
1 file changed
+6
+6
View File
@@ -441,6 +441,12 @@ impl<'a> IntoDynNode<'a> for VNode<'a> {
}
}
impl<'a> IntoDynNode<'a> for DynamicNode<'a> {
fn into_vnode(self, _cx: &'a ScopeState) -> DynamicNode<'a> {
self
}
}
// An element that's an error is currently lost into the ether
impl<'a> IntoDynNode<'a> for Element<'a> {
fn into_vnode(self, _cx: &'a ScopeState) -> DynamicNode<'a> {