We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
oxlint
1 parent f91db73 commit 2604b28Copy full SHA for 2604b28
crates/oxc_linter/src/tsgolint.rs
@@ -1,9 +1,7 @@
1
use std::{
2
- borrow::Cow,
3
collections::BTreeSet,
4
ffi::OsStr,
5
io::{ErrorKind, Read, Write},
6
- mem,
7
path::{Path, PathBuf},
8
sync::Arc,
9
};
@@ -601,6 +599,8 @@ impl From<TsGoLintDiagnostic> for OxcDiagnostic {
601
599
impl Message<'_> {
602
600
/// Converts a `TsGoLintDiagnostic` into a `Message` with possible fixes.
603
fn from_tsgo_lint_diagnostic(mut val: TsGoLintDiagnostic, source_text: &str) -> Self {
+ use std::{borrow::Cow, mem};
+
604
let mut fixes =
605
Vec::with_capacity(usize::from(!val.fixes.is_empty()) + val.suggestions.len());
606
0 commit comments