1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-21 23:17:45 +00:00

Run Clippy auto-fix

This commit is contained in:
Joshua Goins 2025-03-16 14:09:12 -04:00
parent 51f6ad6744
commit 3bbf345cd6
3 changed files with 3 additions and 13 deletions

View file

@ -1,5 +1,3 @@
use std::io::Cursor;
use std::path::PathBuf;
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::{SystemTime, UNIX_EPOCH};
use binrw::BinRead; use binrw::BinRead;
@ -7,8 +5,8 @@ use kawari::ipc::{GameMasterCommandType, IPCOpCode, IPCSegment, IPCStructData};
use kawari::oodle::FFXIVOodle; use kawari::oodle::FFXIVOodle;
use kawari::packet::{PacketSegment, SegmentType, State, send_keep_alive}; use kawari::packet::{PacketSegment, SegmentType, State, send_keep_alive};
use kawari::world::{ use kawari::world::{
ActorControlSelf, ActorControlType, ChatHandler, InitZone, PlayerEntry, PlayerSetup, ActorControlSelf, ActorControlType, ChatHandler, PlayerEntry, PlayerSetup, PlayerSpawn,
PlayerSpawn, PlayerStats, Position, SocialList, UpdateClassInfo, Zone, ZoneConnection, PlayerStats, Position, SocialList, Zone, ZoneConnection,
}; };
use kawari::{CHAR_NAME, CONTENT_ID, CUSTOMIZE_DATA, WORLD_ID, ZONE_ID, timestamp_secs}; use kawari::{CHAR_NAME, CONTENT_ID, CUSTOMIZE_DATA, WORLD_ID, ZONE_ID, timestamp_secs};
use tokio::io::AsyncReadExt; use tokio::io::AsyncReadExt;

View file

@ -1,7 +1,3 @@
use std::io::Cursor;
use binrw::BinRead;
use crate::{ use crate::{
CHAR_NAME, CUSTOMIZE_DATA, WORLD_ID, CHAR_NAME, CUSTOMIZE_DATA, WORLD_ID,
ipc::{IPCOpCode, IPCSegment, IPCStructData}, ipc::{IPCOpCode, IPCSegment, IPCStructData},

View file

@ -1,10 +1,6 @@
use std::io::Cursor;
use binrw::BinRead;
use tokio::net::TcpStream; use tokio::net::TcpStream;
use crate::{ use crate::{
WORLD_ID,
common::timestamp_secs, common::timestamp_secs,
ipc::{ActorSetPos, IPCOpCode, IPCSegment, IPCStructData}, ipc::{ActorSetPos, IPCOpCode, IPCSegment, IPCStructData},
packet::{ packet::{
@ -139,6 +135,6 @@ impl ZoneConnection {
pub fn get_free_spawn_index(&mut self) -> u8 { pub fn get_free_spawn_index(&mut self) -> u8 {
self.spawn_index += 1; self.spawn_index += 1;
return self.spawn_index; self.spawn_index
} }
} }