From 33f9dee31fd58dd912a2c8ccc7dfb1ee806988b4 Mon Sep 17 00:00:00 2001 From: lumi Date: Wed, 3 May 2017 18:39:40 +0200 Subject: [PATCH] move use std::iter::FromIterator to tests --- src/element.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/element.rs b/src/element.rs index ff31b87..5ac2a14 100644 --- a/src/element.rs +++ b/src/element.rs @@ -3,7 +3,6 @@ use std::io::prelude::*; use std::io::Cursor; use std::collections::BTreeMap; -use std::iter::FromIterator; use std::fmt; @@ -548,6 +547,8 @@ impl ElementBuilder { #[test] fn test_element_new() { + use std::iter::FromIterator; + let elem = Element::new( "name".to_owned() , Some("namespace".to_owned()) , BTreeMap::from_iter(vec![ ("name".to_string(), "value".to_string()) ].into_iter() )