diff --git a/src/inventory/currency.rs b/src/inventory/currency.rs index fd88fc2..561e737 100644 --- a/src/inventory/currency.rs +++ b/src/inventory/currency.rs @@ -27,14 +27,14 @@ impl Storage for CurrencyStorage { fn get_slot_mut(&mut self, index: u16) -> &mut Item { match index { 0 => &mut self.gil, - _ => panic!("{} is not a valid src_container_index?!?", index), + _ => panic!("{index} is not a valid src_container_index?!?"), } } fn get_slot(&self, index: u16) -> &Item { match index { 0 => &self.gil, - _ => panic!("{} is not a valid src_container_index?!?", index), + _ => panic!("{index} is not a valid src_container_index?!?"), } } } diff --git a/src/inventory/equipped.rs b/src/inventory/equipped.rs index d07e7e2..32afecb 100644 --- a/src/inventory/equipped.rs +++ b/src/inventory/equipped.rs @@ -56,7 +56,7 @@ impl Storage for EquippedStorage { 11 => &mut self.right_ring, 12 => &mut self.left_ring, 13 => &mut self.soul_crystal, - _ => panic!("{} is not a valid src_container_index?!?", index), + _ => panic!("{index} is not a valid src_container_index?!?"), } } @@ -76,7 +76,7 @@ impl Storage for EquippedStorage { 11 => &self.right_ring, 12 => &self.left_ring, 13 => &self.soul_crystal, - _ => panic!("{} is not a valid src_container_index?!?", index), + _ => panic!("{index} is not a valid src_container_index?!?"), } } }