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 <[email protected]>
  • Loading branch information
hawkw committed Mar 18, 2022
1 parent d5248a5 commit 63015eb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tracing-core/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,15 +552,9 @@ 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 {
fn default() -> Self {
Self::new()
}
}

impl NoCollector {
/// Returns a new `NoCollector` instance.
///
Expand Down

0 comments on commit 63015eb

Please sign in to comment.