clippy: drop &ref

This commit is contained in:
Graham Christensen 2019-01-02 19:21:04 -05:00
parent 91e23d101e
commit e9f437d49f
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -568,7 +568,7 @@ impl MetricCollector {
index_fields.push("instance".to_owned());
let ref_index_fields: Vec<String> = index_fields
.iter()
.map(|m| format!("ref {}", m))
.map(|m| format!("{}", m))
.collect();
let for_matcher: String;
@ -591,7 +591,7 @@ impl MetricCollector {
.expect(\"Failed to unwrap metric mutex for {}\");
let values: Vec<String> = (*table)
.iter()
.map(|(&{}, value)| {{
.map(|({}, value)| {{
let kvs: Vec<String> = vec![
{}
];