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());
}
if let Some(range) = file.range {
root.append_child(Element::builder("range")
.ns(ns::JINGLE_FT)
.append(range)
.build());
root.append_child(range.into());
}
for hash in file.hashes {
root.append_child(hash.into());