From a25ac4073d201801030f5a2baf13c54d80cc3467 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 31 May 2018 16:06:34 +0200 Subject: make entry immutable --- src/statistics/trackers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/statistics/trackers.rs b/src/statistics/trackers.rs index 2783285..6e23480 100644 --- a/src/statistics/trackers.rs +++ b/src/statistics/trackers.rs @@ -303,7 +303,7 @@ impl BoonTracker { /// * `buff_id` - The buff (or condition) id. fn get_queue(&mut self, agent: u64, buff_id: u16) -> Option<&mut BoonQueue> { use std::collections::hash_map::Entry; - let mut entry = self + let entry = self .boon_queues .entry(agent) .or_insert_with(Default::default) -- cgit v1.2.3