Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement conversions between Option<Level> and LevelFilter
This is nice to have when working with the `log` crate, as it allows for more ergonomic conversions between the two types. Specifically, This allows type bounds that require Into<LevelFilter> or Into<Option<Level>> to be used. This in turn makes it possible to write more generic code that can work with tracing and log crates interchangeably. Specifically, this supports some ideas in clap-rs/clap-verbosity-flag#121
- Loading branch information