Remove #[macro_use] extern crate tracing from rustfmt helpers.

This commit is contained in:
Nicholas Nethercote 2024-08-30 13:31:05 +10:00
parent 37d1ce91b5
commit de02c4af61
2 changed files with 2 additions and 6 deletions

View File

@ -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;

View File

@ -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};