move use std::iter::FromIterator to tests

This commit is contained in:
lumi 2017-05-03 18:39:40 +02:00
parent 1bc1437da8
commit 33f9dee31f

View file

@ -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() )