From 00bc0012973edecfbdf2225826c4bfdedc927216 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 12 Feb 2023 02:16:06 +0000 Subject: [PATCH] clipster --- src/entity/gateway/postgres/models.rs | 4 ++-- src/entity/item/mod.rs | 1 - src/ship/items/actions.rs | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) 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), ()))