Cargo.toml: Update minidom to 0.4.3 to use its new IntoAttributeValue implementation on numbers.

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-27 23:18:15 +01:00
commit 6794b34714
6 changed files with 9 additions and 12 deletions

View file

@ -24,11 +24,8 @@ impl IntoElements for Range {
fn into_elements(self, emitter: &mut ElementEmitter) {
let mut elem = Element::builder("range")
.ns(ns::JINGLE_FT)
.attr("offset", format!("{}", self.offset))
.attr("length", match self.length {
Some(length) => Some(format!("{}", length)),
None => None
})
.attr("offset", self.offset)
.attr("length", self.length)
.build();
for hash in self.hashes {
elem.append_child(hash.into());