From d9116309f12ca5580639e19aaf3b419a61a6f570 Mon Sep 17 00:00:00 2001 From: Tamme Schichler Date: Thu, 3 Feb 2022 18:57:41 +0100 Subject: [PATCH] flame: remove unused imports from README example (#1836) ## 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. --- tracing-flame/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tracing-flame/README.md b/tracing-flame/README.md index de88ad04b0..0ce5e8341a 100644 --- a/tracing-flame/README.md +++ b/tracing-flame/README.md @@ -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();