Remove now-useless "extern crate"s.

This commit is contained in:
Emmanuel Gil Peyrot 2018-12-18 19:04:02 +01:00
parent 24b2ff1851
commit 3aba4e7070
4 changed files with 1 additions and 34 deletions

View file

@ -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::env::args;
use std::process::exit; use std::process::exit;
use try_from::TryFrom; use try_from::TryFrom;

View file

@ -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::env::args;
use std::process::exit; use std::process::exit;
use std::str::FromStr; use std::str::FromStr;

View file

@ -115,7 +115,7 @@ impl Future for Connecter {
Ok(Async::NotReady) Ok(Async::NotReady)
} }
Ok(Async::Ready(srv_result)) => { Ok(Async::Ready(srv_result)) => {
let mut srv_map: BTreeMap<_, _> = let srv_map: BTreeMap<_, _> =
srv_result.iter() srv_result.iter()
.map(|srv| (srv.priority(), (srv.target().clone(), srv.port()))) .map(|srv| (srv.priority(), (srv.target().clone(), srv.port())))
.collect(); .collect();

View file

@ -2,23 +2,6 @@
//! XMPP implemeentation with asynchronous I/O using Tokio. //! 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] #[macro_use]
extern crate derive_error; extern crate derive_error;