Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Depends on #2023 ## Motivation Currently, `FmtSubscriber` holds a `PhantomData<C>` with the `Collect` type it wraps. This is unfortunate because it means that the subscriber's auto traits such as `Send`, `Sync`, and `'static` (as well as `UnwindSafe`, `Unpin`, etc) depend on the collector type's auto traits...but the subscriber will never actually _store_ a value of type `C`. While all collectors will be `Send + Sync + 'static` in practice, the `PhantomData` means that functions returning a boxed `FmtSubscriber` must unnecessarily bound the collector type parameter. ## Solution This commit changes the `PhantomData` to `PhantomData<fn(C)>`, solving the problem. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information