diff --git a/src/minecraft/client.rs b/src/minecraft/client.rs index 461a449..de1d6e6 100644 --- a/src/minecraft/client.rs +++ b/src/minecraft/client.rs @@ -10,11 +10,9 @@ /* */ /* ************************************************************************** */ -use async_std::task::sleep; use json::object; use tokio::net::TcpStream; use std::collections::VecDeque; -use std::time::Duration; use crate::minecraft::handshake::Handshake; use crate::minecraft::varint::{varint_read, varint_write}; use std::{fmt, io}; diff --git a/src/rpc/actions/ping.rs b/src/rpc/actions/ping.rs index ec48402..4c496b3 100644 --- a/src/rpc/actions/ping.rs +++ b/src/rpc/actions/ping.rs @@ -1,4 +1,3 @@ -use json::object; //pub fn ping(data: json::object) -> json::object { // diff --git a/src/rpc/socket.rs b/src/rpc/socket.rs index 9c2db11..9cb6a21 100644 --- a/src/rpc/socket.rs +++ b/src/rpc/socket.rs @@ -1,7 +1,6 @@ use std::io; use tokio::net::TcpStream; -use crate::rpc::actions; /* * request_format : @@ -17,6 +16,6 @@ use crate::rpc::actions; * - data: json object containing the response data */ -pub async fn process_rpc_socket(stream: TcpStream) -> io::Result<()> { +pub async fn process_rpc_socket(_stream: TcpStream) -> io::Result<()> { panic!("not implemented"); }