mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
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) {
|
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||||
emitter.append_child(self);
|
emitter.append_child(self.into());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue