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()); 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![
{} {}
]; ];