removed unused imports

This commit is contained in:
Mitch161 2020-07-19 18:04:22 +01:00
parent 240f8fa671
commit f7b827b15d
4 changed files with 4 additions and 21 deletions

View File

@ -1,14 +1,6 @@
mod server;
// mod server_v2;
use crate::server::client::client_profile::Client;
use crate::server::server_profile::Server;
use std::net::{TcpStream, TcpListener};
use rust_chat_server::ThreadPool;
use std::sync::{Arc, Barrier, Mutex};
use std::collections::HashMap;
use crate::server::commands::Commands;
use crossbeam_channel::Sender;
fn main(){
let server_name: &'static str = "Server-01";

View File

@ -6,12 +6,11 @@ use crate::server::commands::{Commands};
use std::net::{Shutdown, TcpStream};
use std::sync::Arc;
use parking_lot::FairMutex;
use std::collections::HashMap;
use dashmap::DashMap;
use std::io::prelude::*;
use std::time::Duration;
use regex::Regex;
use crossbeam::{channel, Sender, Receiver, TryRecvError};
use crossbeam::{Sender, Receiver, TryRecvError};
use crossbeam_channel::unbounded;

View File

@ -10,14 +10,7 @@ mod client;
mod test;
mod message;
use crate::server::client::client_profile::Client;
use crate::server::server_profile::Server;
use std::string::ToString;
use parking_lot::FairMutex;
use std::sync::Mutex;
use std::sync::Arc;
use std::collections::HashMap;
use dashmap::DashMap;
use std::borrow::Borrow;
@ -229,4 +222,4 @@ mod test_commands_v2 {
println!("{:?}", command.to_string())
}
}
}

View File

@ -4,10 +4,9 @@ use crate::server::client::client_profile::Client;
use crate::server::commands::{Commands};
use rust_chat_server::ThreadPool;
use std::collections::VecDeque;
use std::net::{TcpStream, TcpListener};
use std::sync::{Arc, Barrier, Mutex };
use crossbeam_channel::{unbounded, Sender, Receiver};
use std::sync::{Arc, Mutex};
use crossbeam_channel::Sender;
use parking_lot::FairMutex;
use std::collections::HashMap;
use dashmap::DashMap;