diff --git a/CHANGELOG.md b/CHANGELOG.md index b749476eacc492075761dc033c1ab3fda355df60..369ef8ad62d81000184f2cf47b2e713ac4d80326 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +Version 0.6.2, released 2017-08-27: + * Additions + - Link Mauve added an implementation of IntoElements for all Into ( https://gitlab.com/lumi/minidom-rs/merge_requests/19 ) Version 0.6.1, released 2017-08-20: * Additions - Astro added Element::has_ns, which checks whether an element's namespace matches the passed argument. ( https://gitlab.com/lumi/minidom-rs/merge_requests/16 ) diff --git a/Cargo.toml b/Cargo.toml index a89aea2cf53fd811d7f22a53b2064cc4312432c0..b9fa61ad49721e7ad916477d1e11d507def0cab1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "minidom" -version = "0.6.1" +version = "0.6.2" authors = ["lumi ", "Emmanuel Gil Peyrot ", "Bastien Orivel ", "Astro "] description = "A small, simple DOM implementation on top of quick-xml" homepage = "https://gitlab.com/lumi/minidom-rs" diff --git a/src/convert.rs b/src/convert.rs index 126688b7a5f997a14b996677fe750b2878368649..1b35414c12b0495e693b4d71d0238afd6f3345de 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -51,9 +51,9 @@ impl IntoElements for Option { } } -impl IntoElements for Element { +impl IntoElements for T where T: Into { fn into_elements(self, emitter: &mut ElementEmitter) { - emitter.append_child(self); + emitter.append_child(self.into()); } }