-
Notifications
You must be signed in to change notification settings - Fork 847
flame: remove unused imports from README example #1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| use tracing_subscriber::{registry::Registry, prelude::*, fmt}; | ||
| use tracing_subscriber::{prelude::*, fmt}; | ||
|
|
||
| fn setup_global_subscriber() -> impl Drop { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's incidental, but this example would have been easier for me to understand without type annotations if there was a #[must_use] on this function (since impl Drop appears to cause that warning to not propagate here) and _guard was flush_guard instead.
hawkw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me!
## 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.
## 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.
## 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.
## 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.
## 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.
Motivation
While writing a component tracing example, I noticed that these imports were giving me
unused_importswarnings. It seems they aren't necessary anymore.Solution
I removed the unused imports in this example.