mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
remove unused imports
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
use std::{
|
||||
io,
|
||||
net::{SocketAddr, TcpListener, TcpStream},
|
||||
sync::Arc,
|
||||
net::{TcpStream},
|
||||
};
|
||||
|
||||
use async_executor::Executor;
|
||||
use async_std::io::BufReader;
|
||||
|
||||
|
||||
use futures::{
|
||||
io::{ReadHalf, WriteHalf},
|
||||
AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, Future, FutureExt,
|
||||
io::{WriteHalf}, AsyncWriteExt,
|
||||
};
|
||||
use log::{debug, error, info, warn};
|
||||
use simplelog::{ColorChoice, LevelFilter, TermLogger, TerminalMode};
|
||||
use log::{debug, info};
|
||||
|
||||
use smol::Async;
|
||||
|
||||
use drk::{
|
||||
net,
|
||||
serial::{Decodable, Encodable},
|
||||
Error, Result,
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#[macro_use]
|
||||
extern crate clap;
|
||||
use std::{
|
||||
io,
|
||||
net::{SocketAddr, TcpListener, TcpStream},
|
||||
sync::Arc,
|
||||
};
|
||||
@@ -9,8 +8,7 @@ use std::{
|
||||
use async_executor::Executor;
|
||||
use async_std::io::BufReader;
|
||||
use futures::{
|
||||
io::{ReadHalf, WriteHalf},
|
||||
AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, Future, FutureExt,
|
||||
AsyncBufReadExt, AsyncReadExt, FutureExt,
|
||||
};
|
||||
use log::{debug, error, info, warn};
|
||||
use simplelog::{ColorChoice, LevelFilter, TermLogger, TerminalMode};
|
||||
@@ -18,7 +16,6 @@ use smol::Async;
|
||||
|
||||
use drk::{
|
||||
net,
|
||||
serial::{Decodable, Encodable},
|
||||
Error, Result,
|
||||
};
|
||||
|
||||
@@ -37,7 +34,7 @@ async fn process(
|
||||
stream: Async<TcpStream>,
|
||||
peer_addr: SocketAddr,
|
||||
p2p: net::P2pPtr,
|
||||
executor: Arc<Executor<'_>>,
|
||||
_executor: Arc<Executor<'_>>,
|
||||
) -> Result<()> {
|
||||
let (reader, writer) = stream.split();
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
use std::io;
|
||||
use drk::{
|
||||
net,
|
||||
serial::{Decodable, Encodable},
|
||||
Error, Result,
|
||||
serial::{Decodable, Encodable}, Result,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
||||
@@ -1,23 +1,16 @@
|
||||
use std::{
|
||||
io,
|
||||
net::{SocketAddr, TcpListener, TcpStream},
|
||||
sync::Arc,
|
||||
net::{SocketAddr},
|
||||
};
|
||||
|
||||
use async_executor::Executor;
|
||||
use async_std::io::BufReader;
|
||||
use futures::{
|
||||
io::{ReadHalf, WriteHalf},
|
||||
AsyncBufReadExt, AsyncReadExt, AsyncWriteExt, Future, FutureExt,
|
||||
};
|
||||
use log::{debug, error, info, warn};
|
||||
use simplelog::{ColorChoice, LevelFilter, TermLogger, TerminalMode};
|
||||
use smol::Async;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
use drk::{
|
||||
net,
|
||||
serial::{Decodable, Encodable},
|
||||
Error, Result,
|
||||
net, Result,
|
||||
};
|
||||
|
||||
pub struct ProgramOptions {
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
use std::{
|
||||
io,
|
||||
net::{SocketAddr, TcpListener, TcpStream},
|
||||
sync::Arc,
|
||||
};
|
||||
use log::{debug, error, info, warn};
|
||||
use log::debug;
|
||||
use async_executor::Executor;
|
||||
use drk::{
|
||||
net,
|
||||
serial::{Decodable, Encodable},
|
||||
Error, Result,
|
||||
net, Result,
|
||||
};
|
||||
|
||||
use crate::privmsg::PrivMsg;
|
||||
|
||||
Reference in New Issue
Block a user