diff --git a/examples/echo_bot.rs b/examples/echo_bot.rs index 13822260..67cbfbb3 100644 --- a/examples/echo_bot.rs +++ b/examples/echo_bot.rs @@ -1,11 +1,3 @@ -extern crate futures; -extern crate tokio; -extern crate tokio_xmpp; -extern crate jid; -extern crate minidom; -extern crate xmpp_parsers; -extern crate try_from; - use std::env::args; use std::process::exit; use try_from::TryFrom; diff --git a/examples/echo_component.rs b/examples/echo_component.rs index 1239354a..b9e24265 100644 --- a/examples/echo_component.rs +++ b/examples/echo_component.rs @@ -1,11 +1,3 @@ -extern crate futures; -extern crate tokio; -extern crate tokio_xmpp; -extern crate jid; -extern crate minidom; -extern crate xmpp_parsers; -extern crate try_from; - use std::env::args; use std::process::exit; use std::str::FromStr; diff --git a/src/happy_eyeballs.rs b/src/happy_eyeballs.rs index 7bdab7ee..451f9c73 100644 --- a/src/happy_eyeballs.rs +++ b/src/happy_eyeballs.rs @@ -115,7 +115,7 @@ impl Future for Connecter { Ok(Async::NotReady) } Ok(Async::Ready(srv_result)) => { - let mut srv_map: BTreeMap<_, _> = + let srv_map: BTreeMap<_, _> = srv_result.iter() .map(|srv| (srv.priority(), (srv.target().clone(), srv.port()))) .collect(); diff --git a/src/lib.rs b/src/lib.rs index f874315f..b1942119 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,23 +2,6 @@ //! XMPP implemeentation with asynchronous I/O using Tokio. -extern crate futures; -extern crate tokio; -extern crate tokio_io; -extern crate tokio_codec; -extern crate bytes; -extern crate xml5ever; -extern crate quick_xml; -extern crate minidom; -extern crate native_tls; -extern crate tokio_tls; -extern crate sasl; -extern crate jid; -extern crate trust_dns_resolver; -extern crate trust_dns_proto; -extern crate idna; -extern crate xmpp_parsers; -extern crate try_from; #[macro_use] extern crate derive_error;