Skip to content

Commit

Permalink
examples: suppress false positive clippy lint (#2846)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
  • Loading branch information
SUPERCILEX authored Jan 6, 2024
1 parent bac2508 commit 00ca2dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/examples/sloggish/sloggish_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ impl Collect for SloggishCollector {
self.print_indent(&mut stderr, indent).unwrap();
stack.push(span_id.clone());
if let Some(data) = data {
#[allow(clippy::map_identity)] // TODO remove in Rust 1.77
self.print_kvs(&mut stderr, data.kvs.iter().map(|(k, v)| (k, v)), "")
.unwrap();
}
Expand Down

0 comments on commit 00ca2dc

Please sign in to comment.