examples: suppress false positive clippy lint (#2846)

Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
Alex Saveau 2024-01-06 11:28:11 -08:00 committed by Hayden Stainsby
parent e8c51f6368
commit dbeaa11353

View File

@ -239,6 +239,7 @@ impl Subscriber for SloggishSubscriber {
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();
}