From 45996e9d011e9221f5ed6b8cbb1d0bcc81d7a2f3 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 2 Feb 2023 00:10:15 -0700 Subject: [PATCH] clippy --- src/ship/items/apply_item.rs | 2 +- src/ship/items/bank.rs | 2 +- src/ship/items/inventory.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ship/items/apply_item.rs b/src/ship/items/apply_item.rs index d73941e..6978f2e 100644 --- a/src/ship/items/apply_item.rs +++ b/src/ship/items/apply_item.rs @@ -12,7 +12,7 @@ use crate::entity::item::tech::TechniqueDisk; use crate::entity::item::{ItemDetail, ItemEntityId}; use crate::entity::item::weapon::WeaponModifier; use crate::ship::items::state::ItemStateProxy; -use crate::ship::items::inventory::{InventoryItem, InventoryItemDetail}; +use crate::ship::items::inventory::InventoryItemDetail; #[derive(Error, Debug)] diff --git a/src/ship/items/bank.rs b/src/ship/items/bank.rs index 4f922af..cf88ae3 100644 --- a/src/ship/items/bank.rs +++ b/src/ship/items/bank.rs @@ -134,7 +134,7 @@ impl BankState { item.item_id = ClientItemId(*bitem_id + i as u32); } - *bitem_id = *bitem_id + self.bank.0.len() as u32; + *bitem_id += self.bank.0.len() as u32; } pub fn add_meseta(&mut self, amount: u32) -> Result<(), anyhow::Error> { diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 19fa372..da131d8 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -214,7 +214,7 @@ impl InventoryState { item.item_id = ClientItemId(*bitem_id + i as u32); } - *bitem_id = *bitem_id + self.inventory.0.len() as u32; + *bitem_id += self.inventory.0.len() as u32; } pub async fn new_item_id(&mut self) -> ClientItemId {