diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-05-31 16:06:34 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-05-31 16:06:34 +0200 |
commit | a25ac4073d201801030f5a2baf13c54d80cc3467 (patch) | |
tree | 04b2e9ef0af1134bb1ef648441e7471db5ae45e1 /src | |
parent | 2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 (diff) | |
download | evtclib-a25ac4073d201801030f5a2baf13c54d80cc3467.tar.gz evtclib-a25ac4073d201801030f5a2baf13c54d80cc3467.tar.bz2 evtclib-a25ac4073d201801030f5a2baf13c54d80cc3467.zip |
make entry immutable
Diffstat (limited to 'src')
-rw-r--r-- | src/statistics/trackers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |