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
14
src/disco.rs
14
src/disco.rs
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
use try_from::TryFrom;
|
||||
|
||||
use minidom::{Element, IntoElements, ElementEmitter};
|
||||
use minidom::Element;
|
||||
|
||||
use error::Error;
|
||||
use ns;
|
||||
|
|
@ -62,12 +62,6 @@ impl From<Feature> for Element {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoElements for Feature {
|
||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||
emitter.append_child(self.into());
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Identity {
|
||||
pub category: String, // TODO: use an enum here.
|
||||
|
|
@ -88,12 +82,6 @@ impl From<Identity> for Element {
|
|||
}
|
||||
}
|
||||
|
||||
impl IntoElements for Identity {
|
||||
fn into_elements(self, emitter: &mut ElementEmitter) {
|
||||
emitter.append_child(self.into());
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct DiscoInfoResult {
|
||||
pub node: Option<String>,
|
||||
|
|
|
|||
Loading…
Reference in a new issue