jingle_ft: Correctly insert <range/> in <file/>.

This commit is contained in:
Emmanuel Gil Peyrot 2017-10-31 21:44:43 +00:00
parent 655fc9ae68
commit fb27b6225c

View file

@ -166,10 +166,7 @@ impl From<File> for Element {
.build()); .build());
} }
if let Some(range) = file.range { if let Some(range) = file.range {
root.append_child(Element::builder("range") root.append_child(range.into());
.ns(ns::JINGLE_FT)
.append(range)
.build());
} }
for hash in file.hashes { for hash in file.hashes {
root.append_child(hash.into()); root.append_child(hash.into());