1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
This commit is contained in:
Bartek Iwańczuk 2024-11-14 16:39:39 +01:00
parent 61ea7e91a7
commit a95ea7e142
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -33,7 +33,7 @@ pub enum LintResult {
},
/// File was not parsed and linted because, eg. it might have
/// been a minified file.
Skipped { diagnostic: LintDiagnostic },
Skipped { diagnostic: Box<LintDiagnostic> },
}
pub struct CliLinterOptions {
@ -121,11 +121,11 @@ impl CliLinter {
custom_docs_url: None,
info: vec![],
};
let diagnostic = LintDiagnostic {
let diagnostic = Box::new(LintDiagnostic {
specifier,
range: None,
details,
};
});
return Ok(LintResult::Skipped { diagnostic });
}