Skip to content

Commit

Permalink
flame: remove unused imports from README example (#1836)
Browse files Browse the repository at this point in the history
## Motivation

While writing a component tracing example, I noticed that these imports
were giving me `unused_imports` warnings. It seems they aren't necessary
anymore.

## Solution

I removed the unused imports in this example.
  • Loading branch information
Tamschi authored and hawkw committed Feb 3, 2022
1 parent 63c004c commit 6f5c4f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tracing-flame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ of the `FlameLayer`, see the docs for [`FlushGuard`].
## Layer Setup

```rust
use std::{fs::File, io::BufWriter};
use tracing_flame::FlameLayer;
use tracing_subscriber::{registry::Registry, prelude::*, fmt};
use tracing_subscriber::{prelude::*, fmt};

fn setup_global_subscriber() -> impl Drop {
let fmt_layer = fmt::Layer::default();
Expand Down

0 comments on commit 6f5c4f2

Please sign in to comment.