mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
move use std::iter::FromIterator to tests
This commit is contained in:
parent
1bc1437da8
commit
33f9dee31f
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,6 @@
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::io::Cursor;
|
use std::io::Cursor;
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::iter::FromIterator;
|
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
|
@ -548,6 +547,8 @@ impl ElementBuilder {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_element_new() {
|
fn test_element_new() {
|
||||||
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
let elem = Element::new( "name".to_owned()
|
let elem = Element::new( "name".to_owned()
|
||||||
, Some("namespace".to_owned())
|
, Some("namespace".to_owned())
|
||||||
, BTreeMap::from_iter(vec![ ("name".to_string(), "value".to_string()) ].into_iter() )
|
, BTreeMap::from_iter(vec![ ("name".to_string(), "value".to_string()) ].into_iter() )
|
||||||
|
|
Loading…
Reference in a new issue