aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/main.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-10-14 17:02:49 +0200
committerEskil Queseth <eskilq@kth.se>2020-10-14 17:02:49 +0200
commite4406676a28f2dfb756f8f9e38a4242166f19c0e (patch)
tree7f3be459af5be2a8e94952de622d8e093520a56e /mumd/src/main.rs
parenta42eea8af353d15e1ffba287fa47ad774c31aef1 (diff)
downloadmum-e4406676a28f2dfb756f8f9e38a4242166f19c0e.tar.gz
resolve some compiler warnings
Diffstat (limited to 'mumd/src/main.rs')
-rw-r--r--mumd/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs
index c923857..812e7a1 100644
--- a/mumd/src/main.rs
+++ b/mumd/src/main.rs
@@ -12,17 +12,14 @@ use argparse::Store;
use argparse::StoreTrue;
use colored::*;
use tokio::sync::oneshot;
-use futures::{join, select};
+use futures::join;
use log::*;
use mumble_protocol::control::ControlPacket;
use mumble_protocol::crypt::ClientCryptState;
use mumble_protocol::voice::Serverbound;
use std::sync::{Arc, Mutex};
use tokio::sync::{mpsc, watch};
-use std::thread;
use std::time::Duration;
-use tokio::stream::StreamExt;
-use futures::FutureExt;
#[tokio::main]
async fn main() {
@@ -85,7 +82,7 @@ async fn main() {
command_sender.send(Command::ServerConnect{host: server_host, port: server_port, username: username.clone(), accept_invalid_cert});
//command_sender.send(Command::ChannelJoin{channel_id: 1}).unwrap();
command_sender.send(Command::ChannelList).unwrap();
- let state = State::new(packet_sender, command_sender.clone(), connection_info_sender, username);
+ let state = State::new(packet_sender, command_sender.clone(), connection_info_sender);
let state = Arc::new(Mutex::new(state));
// Run it