diff options
Diffstat (limited to 'client/src/render/scene/demand_map.rs')
-rw-r--r-- | client/src/render/scene/demand_map.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/render/scene/demand_map.rs b/client/src/render/scene/demand_map.rs index c27eaac..dc73142 100644 --- a/client/src/render/scene/demand_map.rs +++ b/client/src/render/scene/demand_map.rs @@ -29,6 +29,12 @@ struct DemandMapState<K, V> { needed: HashSet<K>, size_metric: usize, } +impl<K: Hash + Eq + Clone, V: Clone> Default for DemandMap<K, V> { + fn default() -> Self { + Self::new() + } +} + impl<K: Hash + Eq + Clone, V: Clone> DemandMap<K, V> { pub fn new() -> Self { Self { |