Compare commits
No commits in common. "e4b8cf2d54e2a60f7f2b0e850b87446a21d3c587" and "903ace3197d3298713ac14f75dcce5cef7300368" have entirely different histories.
e4b8cf2d54
...
903ace3197
|
|
@ -79,18 +79,7 @@ pub trait LazyUnzipInstance {
|
||||||
|
|
||||||
impl LazyUnzipInstance for &[MetricInstance] {
|
impl LazyUnzipInstance for &[MetricInstance] {
|
||||||
fn lazy_unzip(&self) -> HashMap<String, MetricMeta> {
|
fn lazy_unzip(&self) -> HashMap<String, MetricMeta> {
|
||||||
self.iter().map(
|
self.iter().map(|obj| (obj.dola_id.to_string(), MetricMeta::new(&obj.name, &obj.desc, &obj.device, &obj.source))).collect()
|
||||||
|obj|
|
|
||||||
(
|
|
||||||
obj.dola_id.to_string(),
|
|
||||||
MetricMeta::new(
|
|
||||||
&obj.name,
|
|
||||||
&obj.desc,
|
|
||||||
&obj.device,
|
|
||||||
&obj.source
|
|
||||||
)
|
|
||||||
)
|
|
||||||
).collect()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue