don’t use wildcard use

This commit is contained in:
Emmanuel Gil Peyrot 2017-07-18 21:54:10 +01:00 committed by Astro
commit 794a994720
10 changed files with 27 additions and 29 deletions

View file

@ -1,17 +1,16 @@
use std::mem::replace;
use futures::*;
use futures::sink;
use futures::{Future, Poll, Async, sink, Sink, Stream};
use tokio_io::{AsyncRead, AsyncWrite};
use minidom::Element;
use sasl::common::Credentials;
use sasl::common::scram::*;
use sasl::common::scram::{Sha1, Sha256};
use sasl::client::Mechanism;
use sasl::client::mechanisms::*;
use sasl::client::mechanisms::{Scram, Plain, Anonymous};
use serialize::base64::{self, ToBase64, FromBase64};
use xmpp_codec::*;
use xmpp_stream::*;
use stream_start::*;
use xmpp_codec::Packet;
use xmpp_stream::XMPPStream;
use stream_start::StreamStart;
const NS_XMPP_SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";

View file

@ -1,14 +1,13 @@
use std::mem::replace;
use std::error::Error;
use std::str::FromStr;
use futures::*;
use futures::sink;
use futures::{Future, Poll, Async, sink, Sink, Stream};
use tokio_io::{AsyncRead, AsyncWrite};
use jid::Jid;
use minidom::Element;
use xmpp_codec::*;
use xmpp_stream::*;
use xmpp_codec::Packet;
use xmpp_stream::XMPPStream;
const NS_XMPP_BIND: &str = "urn:ietf:params:xml:ns:xmpp-bind";
const BIND_REQ_ID: &str = "resource-bind";

View file

@ -5,7 +5,7 @@ use tokio_core::reactor::Handle;
use tokio_core::net::TcpStream;
use tokio_io::{AsyncRead, AsyncWrite};
use tokio_tls::TlsStream;
use futures::*;
use futures::{Future, Stream, Poll, Async, Sink, StartSend, AsyncSink};
use minidom::Element;
use jid::{Jid, JidParseError};
use sasl::common::{Credentials, ChannelBinding};
@ -17,9 +17,9 @@ use super::starttls::{NS_XMPP_TLS, StartTlsClient};
use super::happy_eyeballs::Connecter;
mod auth;
use self::auth::*;
use self::auth::ClientAuth;
mod bind;
use self::bind::*;
use self::bind::ClientBind;
mod event;
pub use self::event::Event as ClientEvent;