aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/util/cache.rs')
-rw-r--r--components/util/cache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/util/cache.rs b/components/util/cache.rs
index a0babae263b..074f4514f35 100644
--- a/components/util/cache.rs
+++ b/components/util/cache.rs
@@ -162,7 +162,7 @@ impl<K:Clone+Eq+Hash,V:Clone> SimpleHashCache<K,V> {
}
pub fn evict_all(&mut self) {
- for slot in self.entries.iter_mut() {
+ for slot in &mut self.entries {
*slot = None
}
}