From 3bbf345cd637bf028be4e6ad8fa0634d90a60db4 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 16 Mar 2025 14:09:12 -0400 Subject: [PATCH] Run Clippy auto-fix --- src/bin/kawari-world.rs | 6 ++---- src/world/chat_handler.rs | 4 ---- src/world/connection.rs | 6 +----- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/bin/kawari-world.rs b/src/bin/kawari-world.rs index e18561d..4107391 100644 --- a/src/bin/kawari-world.rs +++ b/src/bin/kawari-world.rs @@ -1,5 +1,3 @@ -use std::io::Cursor; -use std::path::PathBuf; use std::time::{SystemTime, UNIX_EPOCH}; use binrw::BinRead; @@ -7,8 +5,8 @@ use kawari::ipc::{GameMasterCommandType, IPCOpCode, IPCSegment, IPCStructData}; use kawari::oodle::FFXIVOodle; use kawari::packet::{PacketSegment, SegmentType, State, send_keep_alive}; use kawari::world::{ - ActorControlSelf, ActorControlType, ChatHandler, InitZone, PlayerEntry, PlayerSetup, - PlayerSpawn, PlayerStats, Position, SocialList, UpdateClassInfo, Zone, ZoneConnection, + ActorControlSelf, ActorControlType, ChatHandler, PlayerEntry, PlayerSetup, PlayerSpawn, + PlayerStats, Position, SocialList, Zone, ZoneConnection, }; use kawari::{CHAR_NAME, CONTENT_ID, CUSTOMIZE_DATA, WORLD_ID, ZONE_ID, timestamp_secs}; use tokio::io::AsyncReadExt; diff --git a/src/world/chat_handler.rs b/src/world/chat_handler.rs index adfbe05..6f7b069 100644 --- a/src/world/chat_handler.rs +++ b/src/world/chat_handler.rs @@ -1,7 +1,3 @@ -use std::io::Cursor; - -use binrw::BinRead; - use crate::{ CHAR_NAME, CUSTOMIZE_DATA, WORLD_ID, ipc::{IPCOpCode, IPCSegment, IPCStructData}, diff --git a/src/world/connection.rs b/src/world/connection.rs index b575149..ef34c46 100644 --- a/src/world/connection.rs +++ b/src/world/connection.rs @@ -1,10 +1,6 @@ -use std::io::Cursor; - -use binrw::BinRead; use tokio::net::TcpStream; use crate::{ - WORLD_ID, common::timestamp_secs, ipc::{ActorSetPos, IPCOpCode, IPCSegment, IPCStructData}, packet::{ @@ -139,6 +135,6 @@ impl ZoneConnection { pub fn get_free_spawn_index(&mut self) -> u8 { self.spawn_index += 1; - return self.spawn_index; + self.spawn_index } }