From 1c8b7316503d3ab710d3d3ec241b85e76b9a42be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 1 Jan 2021 22:32:12 +0100 Subject: clippy pass --- mumd/src/command.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mumd/src/command.rs') diff --git a/mumd/src/command.rs b/mumd/src/command.rs index 330e3fc..9c8970c 100644 --- a/mumd/src/command.rs +++ b/mumd/src/command.rs @@ -1,11 +1,9 @@ use crate::state::{ExecutionContext, State}; +use crate::network::{tcp::{TcpEvent, TcpEventCallback}, udp::PingRequest}; -use crate::network::tcp::{TcpEvent, TcpEventCallback}; use ipc_channel::ipc::IpcSender; use log::*; -use mumble_protocol::ping::PongPacket; use mumlib::command::{Command, CommandResponse}; -use std::net::SocketAddr; use std::sync::{Arc, Mutex}; use tokio::sync::{mpsc, oneshot}; @@ -16,7 +14,7 @@ pub async fn handle( IpcSender>>, )>, tcp_event_register_sender: mpsc::UnboundedSender<(TcpEvent, TcpEventCallback)>, - ping_request_sender: mpsc::UnboundedSender<(u64, SocketAddr, Box)>, + ping_request_sender: mpsc::UnboundedSender, ) { debug!("Begin listening for commands"); while let Some((command, response_sender)) = command_receiver.recv().await { -- cgit v1.2.1