From d028591efd6c3cfaf330fea1d1a37a2629fc9ad2 Mon Sep 17 00:00:00 2001 From: glennsl Date: Tue, 28 Sep 2021 21:57:41 +0200 Subject: [PATCH] feat(virtual-dom): blanket impl of IntoNodes for Option --- src/virtual_dom/node/into_nodes.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/virtual_dom/node/into_nodes.rs b/src/virtual_dom/node/into_nodes.rs index c602a817c..110cb1534 100644 --- a/src/virtual_dom/node/into_nodes.rs +++ b/src/virtual_dom/node/into_nodes.rs @@ -14,7 +14,7 @@ impl IntoNodes for Node { } } -impl IntoNodes for Option> { +impl> IntoNodes for Option { fn into_nodes(self) -> Vec> { self.map(IntoNodes::into_nodes).unwrap_or_default() } @@ -25,9 +25,3 @@ impl IntoNodes for Vec> { self } } - -impl IntoNodes for Option>> { - fn into_nodes(self) -> Vec> { - self.unwrap_or_default() - } -}