mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
examples: suppress false positive clippy lint (#2846)
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
This commit is contained in:
parent
e8c51f6368
commit
dbeaa11353
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user