diff --git a/src/entity/gateway/postgres/models.rs b/src/entity/gateway/postgres/models.rs index 81de203..e1a6c8c 100644 --- a/src/entity/gateway/postgres/models.rs +++ b/src/entity/gateway/postgres/models.rs @@ -664,7 +664,7 @@ impl From for PgItemNoteDetail { }, ItemNote::FloorLimitReached { map_area } => { PgItemNoteDetail::FloorLimitReached { - map_area: map_area, + map_area, } }, } @@ -712,7 +712,7 @@ impl From for ItemNote { bank, }, PgItemNoteDetail::FloorLimitReached { map_area } => ItemNote::FloorLimitReached { - map_area: map_area, + map_area, }, } } diff --git a/src/entity/item/mod.rs b/src/entity/item/mod.rs index 56bf21f..8b1d967 100644 --- a/src/entity/item/mod.rs +++ b/src/entity/item/mod.rs @@ -10,7 +10,6 @@ pub mod esweapon; use serde::{Serialize, Deserialize}; use crate::entity::character::CharacterEntityId; -use crate::ship::items::ClientItemId; use crate::ship::map::MapArea; use crate::ship::drops::ItemDropType; diff --git a/src/ship/items/actions.rs b/src/ship/items/actions.rs index 8bc3c86..afdd044 100644 --- a/src/ship/items/actions.rs +++ b/src/ship/items/actions.rs @@ -1161,7 +1161,9 @@ where Box::pin(async move { let transaction = floor_item.with_entity_id(transaction, |mut transaction, entity_id| { async move { - transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached { map_area: map_area }).await?; + transaction.gateway().add_item_note(&entity_id, ItemNote::FloorLimitReached { + map_area + }).await?; Ok(transaction) }}).await?; Ok(((item_state, transaction), ()))