From a95ea7e14265ab84ca8b77c948b2550f2e240946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 14 Nov 2024 16:39:39 +0100 Subject: [PATCH] lint --- cli/tools/lint/linter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/tools/lint/linter.rs b/cli/tools/lint/linter.rs index 27f5e042a2..b3e57399bf 100644 --- a/cli/tools/lint/linter.rs +++ b/cli/tools/lint/linter.rs @@ -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 }, } 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 }); }