Skip to content

Commit 31f7a57

Browse files
committed
style(linter): add comments + re-organise imports
1 parent ab51394 commit 31f7a57

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

apps/oxlint/src/lib.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ mod walk;
1515
#[cfg(test)]
1616
mod tester;
1717

18+
use lint::LintRunner;
19+
use result::CliRunResult;
20+
21+
/// Re-exported CLI-related items for use in `tasks/website`.
1822
pub mod cli {
19-
pub use crate::{command::*, lint::LintRunner, result::CliRunResult};
23+
pub use super::{command::*, lint::LintRunner, result::CliRunResult};
2024
}
2125

22-
use cli::{CliRunResult, LintRunner};
23-
2426
#[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))]
2527
#[global_allocator]
2628
static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
@@ -80,7 +82,7 @@ pub fn lint(mut external_linter: Option<ExternalLinter>) -> CliRunResult {
8082
LintRunner::new(command, external_linter).run(&mut stdout)
8183
}
8284

83-
// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads.
85+
/// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads.
8486
fn init_miette() {
8587
miette::set_hook(Box::new(|_| Box::new(miette::MietteHandlerOpts::new().build()))).unwrap();
8688
}

0 commit comments

Comments
 (0)