Skip to content

Commit

Permalink
fix sqflintdata merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Dec 19, 2024
1 parent b8fd218 commit f823a0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/sqf/src/analyze/lints/s19_extra_not.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use hemtt_workspace::{
reporting::{Code, Codes, Diagnostic, Processed, Severity},
};

use crate::{analyze::SqfLintData, Expression, UnaryCommand};
use crate::{analyze::LintData, Expression, UnaryCommand};

crate::analyze::lint!(LintS19ExtraNot);

impl Lint<SqfLintData> for LintS19ExtraNot {
impl Lint<LintData> for LintS19ExtraNot {
fn ident(&self) -> &'static str {
"extra_not"
}
Expand Down Expand Up @@ -41,13 +41,13 @@ impl Lint<SqfLintData> for LintS19ExtraNot {
LintConfig::help()
}

fn runners(&self) -> Vec<Box<dyn AnyLintRunner<SqfLintData>>> {
fn runners(&self) -> Vec<Box<dyn AnyLintRunner<LintData>>> {
vec![Box::new(Runner)]
}
}

struct Runner;
impl LintRunner<SqfLintData> for Runner {
impl LintRunner<LintData> for Runner {
type Target = crate::Expression;

fn run(
Expand All @@ -56,7 +56,7 @@ impl LintRunner<SqfLintData> for Runner {
config: &LintConfig,
processed: Option<&hemtt_workspace::reporting::Processed>,
target: &Self::Target,
_data: &SqfLintData,
_data: &LintData,
) -> Codes {
const COMPARISON_CMDS: &[&str] = &[
"==",
Expand Down

0 comments on commit f823a0c

Please sign in to comment.