Skip to content

Commit

Permalink
Change deprecated to maybeincorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie committed Oct 18, 2023
1 parent 0987940 commit 0c6a30d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions selene-lib/src/lints/constant_table_comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ impl Lint for ConstantTableComparisonLint {
"comparing to a constant table will always fail".to_owned(),
Label::new(comparison.range),
suggestion.clone(),
if suggestion.is_some() {
Applicability::MaybeIncorrect
} else {
Applicability::Unspecified
},
Applicability::MaybeIncorrect,
)
})
.collect()
Expand Down
2 changes: 1 addition & 1 deletion selene-lib/src/lints/deprecated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'a> DeprecatedVisitor<'a> {
notes,
Vec::new(),
fixed_code,
Applicability::MachineApplicable,
Applicability::MaybeIncorrect,
));
}
}
Expand Down

0 comments on commit 0c6a30d

Please sign in to comment.