tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.14k stars 671 forks source link

Fix warnings about unexpected cfg(feature) values #2968

Closed svix-jplatte closed 1 month ago

svix-jplatte commented 1 month ago

Motivation

CI is failing due to a new rustc lint. More about this lint in the recent blog post.

Solution

See individual commits. I chose different solutions for different parts of the codebase where warnings were emitted.

svix-jplatte commented 1 month ago

@hds This should fix all the CI failures from #2925 as all the netlify CI jobs succeeded.

svix-jplatte commented 1 month ago

@davidbarsky any reason this wasn't merged after approval?

davidbarsky commented 1 month ago

@davidbarsky any reason this wasn't merged after approval?

No reason other than "Phabricator taught me muscle memory that the PR author can land PRs/diffs after approval" 😅. Landing this.