mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 00:32:15 +03:00
fix(common): Remove unused import (#9387)
Moving the import under the tty-emitter feature fixes the following: warning: unused import: `IsTerminal` --> /home/user/swc/crates/swc_common/src/errors/emitter.rs:15:28 | 15 | io::{self, prelude::*, IsTerminal}, | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default --------- Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
This commit is contained in:
parent
4e854c7996
commit
f5304761b3
6
.changeset/slow-forks-brake.md
Normal file
6
.changeset/slow-forks-brake.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
swc_common: patch
|
||||
swc_core: patch
|
||||
---
|
||||
|
||||
fix(common): Remove unused import
|
@ -12,7 +12,7 @@ use std::{
|
||||
borrow::Cow,
|
||||
cmp::{min, Reverse},
|
||||
collections::HashMap,
|
||||
io::{self, prelude::*, IsTerminal},
|
||||
io::{self, prelude::*},
|
||||
};
|
||||
|
||||
#[cfg(feature = "tty-emitter")]
|
||||
@ -116,6 +116,8 @@ pub enum ColorConfig {
|
||||
impl ColorConfig {
|
||||
#[cfg(feature = "tty-emitter")]
|
||||
fn to_color_choice(self) -> ColorChoice {
|
||||
use std::io::IsTerminal;
|
||||
|
||||
let stderr = io::stderr();
|
||||
|
||||
match self {
|
||||
|
Loading…
Reference in New Issue
Block a user