Cargo.toml: Update minidom to 0.4.3 to use its new IntoAttributeValue implementation on numbers.
This commit is contained in:
parent
8e1d5e7983
commit
6794b34714
6 changed files with 9 additions and 12 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue