Update minidom dep to 0.11
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
24d3d8696d
commit
74759a7e39
2 changed files with 11 additions and 11 deletions
|
@ -21,4 +21,4 @@ gitlab = { repository = "xmpp-rs/jid-rs" }
|
||||||
[dependencies]
|
[dependencies]
|
||||||
failure = "0.1.1"
|
failure = "0.1.1"
|
||||||
failure_derive = "0.1.1"
|
failure_derive = "0.1.1"
|
||||||
minidom = { version = "0.10", optional = true }
|
minidom = { version = "0.11", optional = true }
|
||||||
|
|
20
src/lib.rs
20
src/lib.rs
|
@ -542,7 +542,7 @@ impl BareJid {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "minidom")]
|
#[cfg(feature = "minidom")]
|
||||||
use minidom::{ElementEmitter, IntoAttributeValue, IntoElements};
|
use minidom::{IntoAttributeValue, Node};
|
||||||
|
|
||||||
#[cfg(feature = "minidom")]
|
#[cfg(feature = "minidom")]
|
||||||
impl IntoAttributeValue for Jid {
|
impl IntoAttributeValue for Jid {
|
||||||
|
@ -552,9 +552,9 @@ impl IntoAttributeValue for Jid {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "minidom")]
|
#[cfg(feature = "minidom")]
|
||||||
impl IntoElements for Jid {
|
impl Into<Node> for Jid {
|
||||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
fn into(self) -> Node {
|
||||||
emitter.append_text_node(String::from(self))
|
Node::Text(String::from(self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -566,9 +566,9 @@ impl IntoAttributeValue for FullJid {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "minidom")]
|
#[cfg(feature = "minidom")]
|
||||||
impl IntoElements for FullJid {
|
impl Into<Node> for FullJid {
|
||||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
fn into(self) -> Node {
|
||||||
emitter.append_text_node(String::from(self))
|
Node::Text(String::from(self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -580,9 +580,9 @@ impl IntoAttributeValue for BareJid {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "minidom")]
|
#[cfg(feature = "minidom")]
|
||||||
impl IntoElements for BareJid {
|
impl Into<Node> for BareJid {
|
||||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
fn into(self) -> Node {
|
||||||
emitter.append_text_node(String::from(self))
|
Node::Text(String::from(self))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue