Skip to content

Commit

Permalink
Remove assertion on cfg tokio_unstable in console-subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Jul 5, 2023
1 parent 2de5b68 commit 89d3358
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions console-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,6 @@ impl ConsoleLayer {
}

fn build(config: Builder) -> (Self, Server) {
// The `cfg` value *appears* to be a constant to clippy, but it changes
// depending on the build-time configuration...
#![allow(clippy::assertions_on_constants)]
assert!(
cfg!(tokio_unstable),
"task tracing requires Tokio to be built with RUSTFLAGS=\"--cfg tokio_unstable\"!"
);

let base_time = stats::TimeAnchor::new();
tracing::debug!(
config.event_buffer_capacity,
Expand Down

0 comments on commit 89d3358

Please sign in to comment.