From 78d4c19b57a5ec9bed1305723829b7dd98ee8f4a Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Wed, 3 Jan 2024 18:38:35 +0000 Subject: [PATCH] clippy: Remove identity map --- examples/examples/sloggish/sloggish_collector.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/examples/sloggish/sloggish_collector.rs b/examples/examples/sloggish/sloggish_collector.rs index fd93425f13..14f897f54e 100644 --- a/examples/examples/sloggish/sloggish_collector.rs +++ b/examples/examples/sloggish/sloggish_collector.rs @@ -230,8 +230,7 @@ impl Collect for SloggishCollector { self.print_indent(&mut stderr, indent).unwrap(); stack.push(span_id.clone()); if let Some(data) = data { - self.print_kvs(&mut stderr, data.kvs.iter().map(|(k, v)| (k, v)), "") - .unwrap(); + self.print_kvs(&mut stderr, data.kvs.iter(), "").unwrap(); } writeln!(&mut stderr).unwrap(); }