diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 13:31:05 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-30 13:31:05 +1000 |
| commit | 1fcfd57e2fbd59d2b4edbb6e3e86846646823357 (patch) | |
| tree | 309ee4fedf281519f9e7277e32f229432a0f084f | |
| parent | 9cfbd23ac44a202e1a2e2c0f20ffd05d223050e3 (diff) | |
| download | rust-1fcfd57e2fbd59d2b4edbb6e3e86846646823357.tar.gz rust-1fcfd57e2fbd59d2b4edbb6e3e86846646823357.zip | |
Remove `#[macro_use] extern crate tracing` from rustfmt helpers.
| -rw-r--r-- | src/format-diff/main.rs | 4 | ||||
| -rw-r--r-- | src/git-rustfmt/main.rs | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/format-diff/main.rs b/src/format-diff/main.rs index f9eb70f6e04..d8616c63df9 100644 --- a/src/format-diff/main.rs +++ b/src/format-diff/main.rs @@ -4,12 +4,10 @@ #![deny(warnings)] -#[macro_use] -extern crate tracing; - use serde::{Deserialize, Serialize}; use serde_json as json; use thiserror::Error; +use tracing::debug; use tracing_subscriber::EnvFilter; use std::collections::HashSet; diff --git a/src/git-rustfmt/main.rs b/src/git-rustfmt/main.rs index 5674f40bef9..b8b0432aa95 100644 --- a/src/git-rustfmt/main.rs +++ b/src/git-rustfmt/main.rs @@ -2,9 +2,6 @@ // `rustc_driver`. #![feature(rustc_private)] -#[macro_use] -extern crate tracing; - use std::env; use std::io::stdout; use std::path::{Path, PathBuf}; @@ -13,6 +10,7 @@ use std::str::FromStr; use getopts::{Matches, Options}; use rustfmt_nightly as rustfmt; +use tracing::debug; use tracing_subscriber::EnvFilter; use crate::rustfmt::{load_config, CliOptions, FormatReportFormatterBuilder, Input, Session}; |
