Skip to content

Commit

Permalink
core: derive Default for NoCollector (#1785)
Browse files Browse the repository at this point in the history
* core: derive `Default` for `NoCollector`
* additional clippy nonsense

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Mar 18, 2022
1 parent 37dd332 commit 99e7f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracing-core/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ impl Interest {
///
/// [`NoCollector`] implements the [`Collect`] trait by never being enabled,
/// never being interested in any callsite, and drops all spans and events.
#[derive(Debug, Copy, Clone)]
#[derive(Debug, Default, Copy, Clone)]
pub struct NoCollector(());

impl Default for NoCollector {
Expand Down

0 comments on commit 99e7f27

Please sign in to comment.