File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ mod walk;
1515#[ cfg( test) ]
1616mod tester;
1717
18+ use lint:: LintRunner ;
19+ use result:: CliRunResult ;
20+
21+ /// Re-exported CLI-related items for use in `tasks/website`.
1822pub 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]
2628static 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.
8486fn init_miette ( ) {
8587 miette:: set_hook ( Box :: new ( |_| Box :: new ( miette:: MietteHandlerOpts :: new ( ) . build ( ) ) ) ) . unwrap ( ) ;
8688}
You can’t perform that action at this time.
0 commit comments