implement IntoElements on Into<Element> instead of Element
This commit is contained in:
parent
5d0e4721f6
commit
b49ea5175d
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,9 @@ impl<T: IntoElements> IntoElements for Option<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoElements for Element {
|
||||
impl<T> IntoElements for T where T: Into<Element> {
|
||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||
emitter.append_child(self);
|
||||
emitter.append_child(self.into());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue