From 73bf4d1597230c3c6aa9d08525156642f17bd941 Mon Sep 17 00:00:00 2001 From: asonix Date: Thu, 23 Mar 2023 14:37:33 -0500 Subject: [PATCH] Remove unneeded .into_iter() --- src/collector.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/collector.rs b/src/collector.rs index 91f235f..56a533d 100644 --- a/src/collector.rs +++ b/src/collector.rs @@ -216,7 +216,6 @@ impl Snapshot { fn key_to_parts(key: &Key) -> (String, Vec<(String, String)>) { let labels = key .labels() - .into_iter() .map(|label| (label.key().to_string(), label.value().to_string())) .collect(); let name = key.name().to_string();