Skip to content

Commit de02c4a

Browse files
committed
Remove #[macro_use] extern crate tracing from rustfmt helpers.
1 parent 37d1ce9 commit de02c4a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/tools/rustfmt/src/format-diff/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
#![deny(warnings)]
66

7-
#[macro_use]
8-
extern crate tracing;
9-
107
use serde::{Deserialize, Serialize};
118
use serde_json as json;
129
use thiserror::Error;
10+
use tracing::debug;
1311
use tracing_subscriber::EnvFilter;
1412

1513
use std::collections::HashSet;

src/tools/rustfmt/src/git-rustfmt/main.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// `rustc_driver`.
33
#![feature(rustc_private)]
44

5-
#[macro_use]
6-
extern crate tracing;
7-
85
use std::env;
96
use std::io::stdout;
107
use std::path::{Path, PathBuf};
@@ -13,6 +10,7 @@ use std::str::FromStr;
1310

1411
use getopts::{Matches, Options};
1512
use rustfmt_nightly as rustfmt;
13+
use tracing::debug;
1614
use tracing_subscriber::EnvFilter;
1715

1816
use crate::rustfmt::{load_config, CliOptions, FormatReportFormatterBuilder, Input, Session};

0 commit comments

Comments
 (0)