forked from the-distro/ofborg
clippy: drop &ref
This commit is contained in:
parent
91e23d101e
commit
e9f437d49f
|
@ -568,7 +568,7 @@ impl MetricCollector {
|
||||||
index_fields.push("instance".to_owned());
|
index_fields.push("instance".to_owned());
|
||||||
let ref_index_fields: Vec<String> = index_fields
|
let ref_index_fields: Vec<String> = index_fields
|
||||||
.iter()
|
.iter()
|
||||||
.map(|m| format!("ref {}", m))
|
.map(|m| format!("{}", m))
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
let for_matcher: String;
|
let for_matcher: String;
|
||||||
|
@ -591,7 +591,7 @@ impl MetricCollector {
|
||||||
.expect(\"Failed to unwrap metric mutex for {}\");
|
.expect(\"Failed to unwrap metric mutex for {}\");
|
||||||
let values: Vec<String> = (*table)
|
let values: Vec<String> = (*table)
|
||||||
.iter()
|
.iter()
|
||||||
.map(|(&{}, value)| {{
|
.map(|({}, value)| {{
|
||||||
let kvs: Vec<String> = vec![
|
let kvs: Vec<String> = vec![
|
||||||
{}
|
{}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue