diff --git a/apps/oxlint/src/lib.rs b/apps/oxlint/src/lib.rs index b361bfff5305e..a97587b249644 100644 --- a/apps/oxlint/src/lib.rs +++ b/apps/oxlint/src/lib.rs @@ -15,12 +15,14 @@ mod walk; #[cfg(test)] mod tester; +use lint::LintRunner; +use result::CliRunResult; + +/// Re-exported CLI-related items for use in `tasks/website`. pub mod cli { - pub use crate::{command::*, lint::LintRunner, result::CliRunResult}; + pub use super::{command::*, lint::LintRunner, result::CliRunResult}; } -use cli::{CliRunResult, LintRunner}; - #[cfg(all(feature = "allocator", not(miri), not(target_family = "wasm")))] #[global_allocator] static GLOBAL: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc; @@ -80,7 +82,7 @@ pub fn lint(mut external_linter: Option) -> CliRunResult { LintRunner::new(command, external_linter).run(&mut stdout) } -// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads. +/// Initialize the data which relies on `is_atty` system calls so they don't block subsequent threads. fn init_miette() { miette::set_hook(Box::new(|_| Box::new(miette::MietteHandlerOpts::new().build()))).unwrap(); }