Skip to content

Commit 2604b28

Browse files
committed
fix(linter): fix lint errors building oxlint (#14095)
Fix "unused imports" lint errors when building `oxlint`. These were introduced in #14092 (my mistake).
1 parent f91db73 commit 2604b28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/oxc_linter/src/tsgolint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use std::{
2-
borrow::Cow,
32
collections::BTreeSet,
43
ffi::OsStr,
54
io::{ErrorKind, Read, Write},
6-
mem,
75
path::{Path, PathBuf},
86
sync::Arc,
97
};
@@ -601,6 +599,8 @@ impl From<TsGoLintDiagnostic> for OxcDiagnostic {
601599
impl Message<'_> {
602600
/// Converts a `TsGoLintDiagnostic` into a `Message` with possible fixes.
603601
fn from_tsgo_lint_diagnostic(mut val: TsGoLintDiagnostic, source_text: &str) -> Self {
602+
use std::{borrow::Cow, mem};
603+
604604
let mut fixes =
605605
Vec::with_capacity(usize::from(!val.fixes.is_empty()) + val.suggestions.len());
606606

0 commit comments

Comments
 (0)