clippy
This commit is contained in:
parent
77f69a9d23
commit
45996e9d01
@ -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)]
|
||||
|
@ -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> {
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user