Remove redundant imports
These became warnings in a recent nightly.
The TryFrom/TryInto imports were missed in
4089891f6c, but the rest are truly
redundant.
This commit is contained in:
parent
6df8062867
commit
1bab5c3cd9
22 changed files with 2 additions and 27 deletions
|
|
@ -4,7 +4,6 @@ use std::fs::{create_dir_all, File};
|
|||
use std::io::{self, Write};
|
||||
use std::process::exit;
|
||||
use std::str::FromStr;
|
||||
use tokio;
|
||||
use tokio_xmpp::AsyncClient as Client;
|
||||
use xmpp_parsers::{
|
||||
avatar::{Data as AvatarData, Metadata as AvatarMetadata},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ use futures::stream::StreamExt;
|
|||
use std::env::args;
|
||||
use std::process::exit;
|
||||
use std::str::FromStr;
|
||||
use tokio;
|
||||
use tokio_xmpp::AsyncClient as Client;
|
||||
use xmpp_parsers::message::{Body, Message, MessageType};
|
||||
use xmpp_parsers::presence::{Presence, Show as PresenceShow, Type as PresenceType};
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ use std::env::args;
|
|||
use std::io::{stdin, Read};
|
||||
use std::process::exit;
|
||||
use std::str::FromStr;
|
||||
use tokio;
|
||||
use tokio_xmpp::SimpleClient as Client;
|
||||
use xmpp_parsers::message::{Body, Message};
|
||||
use xmpp_parsers::Jid;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use futures::stream::StreamExt;
|
||||
use std::marker::Unpin;
|
||||
use tokio::io::{AsyncRead, AsyncWrite};
|
||||
use xmpp_parsers::bind::{BindQuery, BindResponse};
|
||||
use xmpp_parsers::iq::{Iq, IqType};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use futures::stream::StreamExt;
|
||||
use std::marker::Unpin;
|
||||
use tokio::io::{AsyncRead, AsyncWrite};
|
||||
use xmpp_parsers::{component::Handshake, ns};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
use super::error::{ConnectorError, Error};
|
||||
use hickory_resolver::{IntoName, TokioAsyncResolver};
|
||||
use idna;
|
||||
use log::debug;
|
||||
use std::net::SocketAddr;
|
||||
use tokio::net::TcpStream;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use {
|
|||
rustls::{ClientConfig, OwnedTrustAnchor, RootCertStore, ServerName},
|
||||
TlsConnector,
|
||||
},
|
||||
webpki_roots,
|
||||
};
|
||||
|
||||
#[cfg(feature = "tls-native")]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
use futures::{sink::SinkExt, stream::StreamExt};
|
||||
use std::marker::Unpin;
|
||||
use tokio::io::{AsyncRead, AsyncWrite};
|
||||
use tokio_util::codec::Framed;
|
||||
use xmpp_parsers::{ns, Element, Jid};
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@ use bytes::{BufMut, BytesMut};
|
|||
use log::debug;
|
||||
use minidom::tree_builder::TreeBuilder;
|
||||
use rxml::{Lexer, PushDriver, RawParser};
|
||||
use std;
|
||||
use std::collections::HashMap;
|
||||
use std::default::Default;
|
||||
use std::fmt::Write;
|
||||
use std::io;
|
||||
#[cfg(feature = "syntax-highlighting")]
|
||||
|
|
@ -252,7 +250,6 @@ impl<'a> std::io::Write for WriteBytes<'a> {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use bytes::BytesMut;
|
||||
|
||||
#[test]
|
||||
fn test_stream_start() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue