Skip to content

Commit

Permalink
game_state.rs: UnitIter: Made fields private
Browse files Browse the repository at this point in the history
  • Loading branch information
ozkriff committed Jan 29, 2017
1 parent 664fcae commit 320bcff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/game_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ impl<'a> Iterator for UnitsAtIter<'a> {

#[derive(Clone)]
pub struct UnitIter<'a> {
pub iter: hash_map::Iter<'a, UnitId, Unit>,
pub state: &'a State,
iter: hash_map::Iter<'a, UnitId, Unit>,
state: &'a State,
}

impl<'a> Iterator for UnitIter<'a> {
Expand Down

0 comments on commit 320bcff

Please sign in to comment.