Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation There isn't an actual reason that `fmt::Layer` needs a separate builder type, since the builder and layer structs are identical and only differ in what methods they provide. If the methods for configuring a `Layer` were exposed by the `Layer` type instead, it would be simple to construct `Layer`s — no need to call `.finish()` on the builder. ## Solution This commit moves all the `LayerBuilder` methods to `Layer`, makes `LayerBuilder` a type alias for `Layer`, and deprecates `Layer::builder`, the `LayerBuilder` type, and `LayerBuilder::finish()`. Since nothing has been removed, this shouldn't be a breaking change, but we can remove the deprecated APIs in 0.3.x. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
- Loading branch information