You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
implDispatch{/// Returns a `Dispatch` that forwards to the given [`Subscriber`].////// [`Subscriber`]: super::subscriber::Subscriberpubfnnew<S>(subscriber:S) -> SelfwhereS:Subscriber + Send + Sync + 'static,{let me = Dispatch{subscriber:Kind::Scoped(Arc::new(subscriber)),};
callsite::register_dispatch(&me);
me
}}
It should be moved to a new function like register_dispatch and get called in dispatcher::set_global_default
and similar functions
Not hidden in self.into() like in tracing_susbcriber
Dispatch::new is not side-effect-free.
It should be moved to a new function like
register_dispatch
and get called indispatcher::set_global_default
and similar functions
Not hidden in
self.into()
like in tracing_susbcriberhttps://github.com/tokio-rs/tracing/blame/690a9a68098aa1eb86d1c5c4aad085ef12245bca/tracing-core/src/dispatch.rs#L545
JakkuSakura/tracing-shared-rs#2
The text was updated successfully, but these errors were encountered: