Upgrade to minidom 0.4.4 to avoid having to redefine IntoElements for each Into<Element>.
This commit is contained in:
parent
21cee25b27
commit
3b6733f38b
9 changed files with 9 additions and 105 deletions
|
|
@ -7,7 +7,7 @@
|
|||
use try_from::TryFrom;
|
||||
use std::str::FromStr;
|
||||
|
||||
use minidom::{Element, IntoElements, IntoAttributeValue, ElementEmitter};
|
||||
use minidom::{Element, IntoAttributeValue};
|
||||
use jid::Jid;
|
||||
|
||||
use error::Error;
|
||||
|
|
@ -110,12 +110,6 @@ impl From<Content> for Element {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoElements for Content {
|
||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||
emitter.append_child(self.into());
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Reason {
|
||||
AlternativeSession, //(String),
|
||||
|
|
@ -240,12 +234,6 @@ impl From<ReasonElement> for Element {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoElements for ReasonElement {
|
||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||
emitter.append_child(self.into());
|
||||
}
|
||||
}
|
||||
|
||||
generate_id!(SessionId);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue