Fix type with updated tracing-subscriber

An updated tracing-subscriber version changed one of the public types;
because we hardcode the type instead of being generic over S:
Subscriber, this was actually a breaking change.  As noted in the
comment adjacent to this line, we would rather be generic over S, but
this requires fixing a bug in abscissa's proc-macros, so in the meantime
we hardcode the type.
This commit is contained in:
Henry de Valence 2019-09-18 12:38:10 -07:00
parent 5506c7e13c
commit f28783c5d4
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ use tracing_subscriber::{filter::Filter, reload::Handle, FmtSubscriber};
// XXX ideally this would be TracingEndpoint<S: Subscriber>
// but this doesn't seem to play well with derive(Component)
pub struct TracingEndpoint {
filter_handle: Handle<Filter, FmtSubscriber>,
filter_handle: Handle<Filter, tracing_subscriber::fmt::Formatter>,
}
impl ::std::fmt::Debug for TracingEndpoint {