1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-10 07:57:46 +00:00

Address four of "warning: variables can be used directly in the format! string" (#92)

This commit is contained in:
thedax 2025-07-01 06:55:25 -04:00 committed by GitHub
parent d14dd3ccd9
commit 877ec335a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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?!?"),
}
}
}

View file

@ -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?!?"),
}
}
}