From 320bcfff5f64000ab247637d1ea6892106fbebee Mon Sep 17 00:00:00 2001 From: Andrey Lesnikov Date: Sun, 29 Jan 2017 18:19:39 +0300 Subject: [PATCH] game_state.rs: UnitIter: Made fields private --- core/src/game_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/game_state.rs b/core/src/game_state.rs index 5881154..fbc7f3b 100644 --- a/core/src/game_state.rs +++ b/core/src/game_state.rs @@ -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> {