We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf78796 commit f7f669cCopy full SHA for f7f669c
1 file changed
html-node-core/src/lib.rs
@@ -85,13 +85,14 @@ impl Node {
85
}
86
87
88
-impl<I> From<I> for Node
+impl<I, N> From<I> for Node
89
where
90
- I: IntoIterator<Item = Self>,
+ I: IntoIterator<Item = N>,
91
+ N: Into<Self>,
92
{
93
fn from(iter: I) -> Self {
94
Self::Fragment(Fragment {
- children: iter.into_iter().collect(),
95
+ children: iter.into_iter().map(Into::into).collect(),
96
})
97
98
0 commit comments