Skip to content

remove unnecessary trait bound #1

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ use std::io;
use tracing::{subscriber::set_global_default, Subscriber};
use tracing_bunyan_formatter::{BunyanFormattingLayer, JsonStorageLayer};
use tracing_log::LogTracer;
use tracing_subscriber::{
fmt::MakeWriter, prelude::__tracing_subscriber_SubscriberExt, EnvFilter, Registry,
};
use tracing_subscriber::{prelude::__tracing_subscriber_SubscriberExt, EnvFilter, Registry};

/// Compose multiple layers into a tracing subscriber
pub fn get_subscriber<'a, F, W>(
Expand All @@ -13,7 +11,7 @@ pub fn get_subscriber<'a, F, W>(
sink: F,
) -> impl Subscriber + Send + Sync
where
F: MakeWriter<'a> + Fn() -> W + Send + Sync + 'static,
F: Fn() -> W + Send + Sync + 'static,
W: io::Write,
{
let env_filter =
Expand Down