Closed
Description
A recent change to tracing-core
in tokio-rs/tracing#1891 which is used by recently released tracing
0.1.29 causes broken compiles due to Kind being changed to a u8 rather than an enum. Manually pinning tracing-core
to 0.1.21 fixes the issue.
error[E0004]: non-exhaustive patterns: `Kind(0_u8)` and `Kind(3_u8..=u8::MAX)` not covered
--> /home/arlyon/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/console-api-0.1.1/src/common.rs:20:15
|
20 | match kind {
| ^^^^ patterns `Kind(0_u8)` and `Kind(3_u8..=u8::MAX)` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
= note: the matched value is of type `tracing_core::Kind`
Happy to open a PR; how should we handle cases where the tracing_core::metadata::Kind
is not covered? Maybe we should also use a u8 to match?
Metadata
Metadata
Assignees
Labels
No labels