From 74759a7e399c53dcaf17041ee72ca7f1eea4c163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 20 Jul 2019 19:45:06 +0200 Subject: [PATCH] Update minidom dep to 0.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- Cargo.toml | 2 +- src/lib.rs | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f3235b3..4f6fe56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,4 +21,4 @@ gitlab = { repository = "xmpp-rs/jid-rs" } [dependencies] failure = "0.1.1" failure_derive = "0.1.1" -minidom = { version = "0.10", optional = true } +minidom = { version = "0.11", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 62847c5..c55c806 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -542,7 +542,7 @@ impl BareJid { } #[cfg(feature = "minidom")] -use minidom::{ElementEmitter, IntoAttributeValue, IntoElements}; +use minidom::{IntoAttributeValue, Node}; #[cfg(feature = "minidom")] impl IntoAttributeValue for Jid { @@ -552,9 +552,9 @@ impl IntoAttributeValue for Jid { } #[cfg(feature = "minidom")] -impl IntoElements for Jid { - fn into_elements(self, emitter: &mut ElementEmitter) { - emitter.append_text_node(String::from(self)) +impl Into for Jid { + fn into(self) -> Node { + Node::Text(String::from(self)) } } @@ -566,9 +566,9 @@ impl IntoAttributeValue for FullJid { } #[cfg(feature = "minidom")] -impl IntoElements for FullJid { - fn into_elements(self, emitter: &mut ElementEmitter) { - emitter.append_text_node(String::from(self)) +impl Into for FullJid { + fn into(self) -> Node { + Node::Text(String::from(self)) } } @@ -580,9 +580,9 @@ impl IntoAttributeValue for BareJid { } #[cfg(feature = "minidom")] -impl IntoElements for BareJid { - fn into_elements(self, emitter: &mut ElementEmitter) { - emitter.append_text_node(String::from(self)) +impl Into for BareJid { + fn into(self) -> Node { + Node::Text(String::from(self)) } }