Skip to content

Commit

Permalink
chore(fmt): Remove warnings [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bv committed Aug 9, 2023
1 parent 5d5be75 commit 8476650
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 15 deletions.
8 changes: 2 additions & 6 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ pub mod handshake;

use std::{
net::SocketAddr,
sync::{
atomic::{AtomicBool, AtomicU64},
Arc,
},
task::Waker,
sync::{atomic::AtomicU64, Arc},
time::Duration,
};

Expand Down Expand Up @@ -647,7 +643,7 @@ impl Client {

let t = task::spawn(async move {
loop {
let mut closer = closer_dispatch.lock().await;
let closer = closer_dispatch.lock().await;
select! {
_ = sleep(Duration::from_millis(50)).fuse() => {
let recv = last_recv.load(std::sync::atomic::Ordering::Relaxed);
Expand Down
5 changes: 1 addition & 4 deletions src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ pub mod state;

use std::{
net::{IpAddr, Ipv4Addr, SocketAddr},
sync::{
atomic::{AtomicBool, AtomicU64},
Arc,
},
sync::{atomic::AtomicU64, Arc},
time::Duration,
};

Expand Down
2 changes: 0 additions & 2 deletions src/notify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use async_std::channel::{Receiver, Sender};
#[cfg(feature = "async_tokio")]
use tokio::sync::mpsc::{Receiver, Sender};

use crate::connection::queue::recv;

/// Notify is a struct that wraps a buffer channel
/// these channels are used to send messages to the main thread.
#[derive(Clone)]
Expand Down
2 changes: 0 additions & 2 deletions src/protocol/ack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use std::{io::Cursor, ops::Range};
use binary_utils::Streamable;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt, BE};

use crate::rakrs_debug;

pub(crate) trait Ackable {
type NackItem;

Expand Down
1 change: 0 additions & 1 deletion src/protocol/packet/offline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use byteorder::WriteBytesExt;

#[cfg(feature = "mcpe")]
pub use crate::protocol::mcpe::UnconnectedPong;
use crate::protocol::MAGIC;
use crate::protocol::RAKNET_HEADER_OVERHEAD;

use super::Packet;
Expand Down

0 comments on commit 8476650

Please sign in to comment.