mirror of
https://github.com/redstrate/Kawari.git
synced 2025-07-10 16:07:45 +00:00
Address four of "warning: variables can be used directly in the format!
string" (#92)
This commit is contained in:
parent
d14dd3ccd9
commit
877ec335a9
2 changed files with 4 additions and 4 deletions
|
@ -27,14 +27,14 @@ impl Storage for CurrencyStorage {
|
||||||
fn get_slot_mut(&mut self, index: u16) -> &mut Item {
|
fn get_slot_mut(&mut self, index: u16) -> &mut Item {
|
||||||
match index {
|
match index {
|
||||||
0 => &mut self.gil,
|
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 {
|
fn get_slot(&self, index: u16) -> &Item {
|
||||||
match index {
|
match index {
|
||||||
0 => &self.gil,
|
0 => &self.gil,
|
||||||
_ => panic!("{} is not a valid src_container_index?!?", index),
|
_ => panic!("{index} is not a valid src_container_index?!?"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ impl Storage for EquippedStorage {
|
||||||
11 => &mut self.right_ring,
|
11 => &mut self.right_ring,
|
||||||
12 => &mut self.left_ring,
|
12 => &mut self.left_ring,
|
||||||
13 => &mut self.soul_crystal,
|
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,
|
11 => &self.right_ring,
|
||||||
12 => &self.left_ring,
|
12 => &self.left_ring,
|
||||||
13 => &self.soul_crystal,
|
13 => &self.soul_crystal,
|
||||||
_ => panic!("{} is not a valid src_container_index?!?", index),
|
_ => panic!("{index} is not a valid src_container_index?!?"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue