From fb27b6225c1e28c2acaceaab44ef2be91e54809b Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 31 Oct 2017 21:44:43 +0000 Subject: [PATCH] jingle_ft: Correctly insert in . --- src/jingle_ft.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/jingle_ft.rs b/src/jingle_ft.rs index fda8dbef..3339e015 100644 --- a/src/jingle_ft.rs +++ b/src/jingle_ft.rs @@ -166,10 +166,7 @@ impl From 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());