From f96fd77f0d729c9636622cd0ef2eb517c595fd7d Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Wed, 6 Jul 2022 16:25:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20merge=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/rome_js_analyze/src/analyzers/no_comment_text.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/rome_js_analyze/src/analyzers/no_comment_text.rs b/crates/rome_js_analyze/src/analyzers/no_comment_text.rs index fa072634528..c366b935faa 100644 --- a/crates/rome_js_analyze/src/analyzers/no_comment_text.rs +++ b/crates/rome_js_analyze/src/analyzers/no_comment_text.rs @@ -45,7 +45,7 @@ impl Rule for NoCommentText { type Signals = Option; fn run(ctx: &RuleContext) -> Option { - let Ast(n) = ctx.query(); + let n = ctx.query(); let jsx_value = n.text(); let is_single_line_comment = jsx_value.starts_with("//"); let is_multi_line_comment = jsx_value.starts_with("/*") && jsx_value.ends_with("*/"); @@ -57,7 +57,7 @@ impl Rule for NoCommentText { } fn diagnostic(ctx: &RuleContext, _: &Self::State) -> Option { - let Ast(node) = ctx.query(); + let node = ctx.query(); Some(RuleDiagnostic::warning( node.range(), @@ -68,7 +68,7 @@ impl Rule for NoCommentText { } fn action(ctx: &RuleContext, _: &Self::State) -> Option { - let Ast(node) = ctx.query(); + let node = ctx.query(); let normalized_comment = format!( "/*{}*/",