Fix: all clippy warns
This commit is contained in:
1 parent
a6d9ed216d
commit
de7b3aa2ea
21 files changed
+35
-53
No files matched your search
@@ -1,5 +1,6 @@
|
||||
use pumpkin_world::item::Item;
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct PlayerInventory {
|
||||
// Main Inventory + Hotbar
|
||||
items: [Option<Item>; 36],
|
||||
@@ -26,7 +27,7 @@ impl PlayerInventory {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_slot(slot: u32, item: Item) {}
|
||||
pub fn set_slot(_slot: u32, _item: Item) {}
|
||||
|
||||
pub fn set_selected(&mut self, slot: i16) {
|
||||
assert!((0..9).contains(&slot));
|
||||
|
||||
Reference in new issue
Block a user