Fix clippy warning

This commit is contained in:
2022-12-16 15:51:58 +01:00
parent 6dd84f7fd2
commit 51467f7b69
2 changed files with 39 additions and 40 deletions

View File

@@ -210,8 +210,8 @@ impl History {
let mut data: HashMap<Index, Vec<(i64, Gaussian)>> = HashMap::new();
for b in &self.batches {
for agent in b.skills.keys() {
let point = (b.time, b.posterior(*agent));
for (agent, skill) in b.skills.iter() {
let point = (b.time, skill.posterior());
if let Some(entry) = data.get_mut(agent) {
entry.push(point);