mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00

## Motivation `tracing` is built with Rust's 2018 edition, but some examples use outdated idioms. Ideally, examples would show code using the currently preferred idioms. This improves clarity, especially for newer Rust programmers who may not be familiar with the idioms of earlier editions. ## Solution This branch updates all the examples to use Rust 2018 edition idioms, and adds `deny` attributes to prevent the use of outdated idioms. * deny rust 2018 idiom lints in examples * examples: update to use Rust 2018 idioms * examples: remove most uses of `extern crate` Signed-off-by: Eliza Weisman <eliza@buoyant.io>