From 89aee8e5d82495bda873af192b78a156b2c12489 Mon Sep 17 00:00:00 2001 From: The Dax Date: Mon, 23 Jun 2025 14:10:04 -0400 Subject: [PATCH] Address warning: "warning: casting to the same type is unnecessary (`u16` -> `u16`)" --- src/world/chat_handler.rs | 4 ++-- src/world/connection.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/world/chat_handler.rs b/src/world/chat_handler.rs index ee13777..b35f81d 100644 --- a/src/world/chat_handler.rs +++ b/src/world/chat_handler.rs @@ -64,13 +64,13 @@ impl ChatHandler { .player_data .inventory .equipped - .get_slot_mut(slot as u16) + .get_slot_mut(slot) .id = id; connection .player_data .inventory .equipped - .get_slot_mut(slot as u16) + .get_slot_mut(slot) .quantity = 1; } } diff --git a/src/world/connection.rs b/src/world/connection.rs index 384d110..5f55f9a 100644 --- a/src/world/connection.rs +++ b/src/world/connection.rs @@ -418,7 +418,7 @@ impl ZoneConnection { territory_type = zone_id; } - self.change_zone(territory_type as u16).await; + self.change_zone(territory_type).await; } pub async fn warp_aetheryte(&mut self, aetheryte_id: u32) { @@ -452,7 +452,7 @@ impl ZoneConnection { territory_type = zone_id; } - self.change_zone(territory_type as u16).await; + self.change_zone(territory_type).await; } pub async fn change_weather(&mut self, new_weather_id: u16) {