summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index a0ecb62..e27e328 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -200,9 +200,7 @@ fn hash_map_iter(h : HashMap<&String, (&LogItem, Vec<(String, String)>)>, d_from
}
// fill the prepared vector with all Series's
- for series in series_vec.iter() {
- res.push(TargetData::Series((*series).clone()));
- }
+ res.extend(series_vec.into_iter().map(TargetData::Series));
}
Ok(res)
}