Skip to content

Commit

Permalink
#[allow(dead_code)] in test
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Oct 17, 2024
1 parent 0928c37 commit 1da5a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tracing-attributes/tests/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use tracing_mock::*;
// Reproduces a compile error when an instrumented function body contains inner
// attributes (https://github.com/tokio-rs/tracing/issues/2294).
#[deny(unused_variables)]
#[allow(dead_code)]
#[instrument]
fn repro_2294() {
#![allow(unused_variables)]
Expand Down

0 comments on commit 1da5a52

Please sign in to comment.