Upgrade to minidom 0.4.4 to avoid having to redefine IntoElements for each Into<Element>.

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-21 01:20:29 +01:00
commit 3b6733f38b
9 changed files with 9 additions and 105 deletions

View file

@ -6,7 +6,7 @@
use try_from::TryFrom;
use minidom::{Element, IntoElements, ElementEmitter};
use minidom::Element;
use error::Error;
@ -28,12 +28,6 @@ impl From<URI> for Element {
}
}
impl IntoElements for URI {
fn into_elements(self, emitter: &mut ElementEmitter) {
emitter.append_child(self.into());
}
}
#[derive(Debug, Clone)]
pub struct MediaElement {
pub width: Option<usize>,
@ -81,12 +75,6 @@ impl From<MediaElement> for Element {
}
}
impl IntoElements for MediaElement {
fn into_elements(self, emitter: &mut ElementEmitter) {
emitter.append_child(self.into());
}
}
#[cfg(test)]
mod tests {
use super::*;