More work on using interior mutability instead of exterior mutability for dynamic types (Battle, Pokemon, etc).
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -19,7 +19,7 @@ impl<'battle, 'library> ChoiceQueue<'battle, 'library> {
|
||||
}
|
||||
|
||||
pub fn peek(&mut self) -> &'battle TurnChoice {
|
||||
&self.queue[self.current].as_ref().unwrap()
|
||||
self.queue[self.current].as_ref().unwrap()
|
||||
}
|
||||
|
||||
pub fn has_next(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user