Browse Source

clippy

pull/128/head
jake 2 years ago
parent
commit
45996e9d01
  1. 2
      src/ship/items/apply_item.rs
  2. 2
      src/ship/items/bank.rs
  3. 2
      src/ship/items/inventory.rs

2
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)]

2
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> {

2
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 {

Loading…
Cancel
Save