From 262e15ab9b590662d66364d997872358c57a2c0b Mon Sep 17 00:00:00 2001 From: ymgyt Date: Sat, 5 Aug 2023 21:47:39 +0900 Subject: [PATCH] fix: remove methods that are incompatible with the minimal version --- src/metrics.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/metrics.rs b/src/metrics.rs index 5d976ac..ad66a13 100644 --- a/src/metrics.rs +++ b/src/metrics.rs @@ -415,10 +415,6 @@ impl Layer for MetricsLayer where S: Subscriber + for<'span> LookupSpan<'span>, { - fn on_register_dispatch(&self, collector: &tracing_core::Dispatch) { - self.inner.on_register_dispatch(collector) - } - fn on_layer(&mut self, subscriber: &mut S) { self.inner.on_layer(subscriber) } @@ -462,10 +458,6 @@ where self.inner.on_follows_from(span, follows, ctx) } - fn event_enabled(&self, event: &tracing_core::Event<'_>, ctx: Context<'_, S>) -> bool { - self.inner.event_enabled(event, ctx) - } - fn on_event(&self, event: &tracing_core::Event<'_>, ctx: Context<'_, S>) { self.inner.on_event(event, ctx) }